.blahoslavka-dashboard {
  --bd-bg: #f3f8fd;
  --bd-surface: #ffffff;
  --bd-soft: #e8f3ff;
  --bd-primary: #1976d2;
  --bd-primary-2: #64b5f6;
  --bd-text: #172331;
  --bd-muted: #637489;
  --bd-line: #d8e5f2;
  --bd-free: #dcefff;
  --bd-occupied: #ece8f5;
  --bd-error: #fff1f1;
  --bd-radius: 14px;
  color: var(--bd-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.blahoslavka-dashboard *,
.blahoslavka-dashboard *::before,
.blahoslavka-dashboard *::after {
  box-sizing: border-box;
}

.blahoslavka-dashboard button,
.blahoslavka-dashboard input,
.blahoslavka-dashboard select {
  font: inherit;
}

.bd-shell {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: linear-gradient(180deg, #fbfdff 0%, var(--bd-bg) 100%);
  border: 1px solid var(--bd-line);
  border-radius: 22px;
}

.bd-topbar,
.bd-hero,
.bd-controls,
.bd-tabs,
.bd-metrics,
.bd-section-title,
.bd-card,
.bd-service,
.bd-person,
.bd-calendar-row {
  width: 100%;
}

.bd-topbar,
.bd-hero,
.bd-service,
.bd-person,
.bd-calendar-row,
.bd-section-title {
  display: flex;
  align-items: center;
}

.bd-topbar {
  gap: 12px;
}

.bd-mark,
.bd-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--bd-primary);
  background: var(--bd-soft);
  font-weight: 900;
}

.bd-mark {
  width: 44px;
  height: 44px;
  border-radius: 15px;
}

.bd-topbar h2,
.bd-hero h3,
.bd-section-title h3 {
  margin: 0;
  letter-spacing: 0;
}

.bd-topbar h2 {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.05;
}

.bd-eyebrow {
  margin: 0 0 4px;
  color: #0f4d8f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bd-status {
  margin-left: auto;
  padding: 8px 12px;
  color: var(--bd-muted);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--bd-line);
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
}

.bd-hero {
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: linear-gradient(135deg, #d9ecff 0%, #ffffff 100%);
  border: 1px solid #cfe3f7;
  border-radius: 18px;
}

.bd-hero h3 {
  font-size: clamp(22px, 3.2vw, 34px);
}

.bd-muted {
  color: var(--bd-muted);
}

.bd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.bd-button,
.bd-icon-button,
.bd-tab {
  min-height: 40px;
  border: 1px solid var(--bd-line);
  border-radius: 999px;
  background: var(--bd-surface);
  color: #0f4d8f;
  cursor: pointer;
  font-weight: 800;
}

.bd-button {
  padding: 0 15px;
}

.bd-button-primary {
  color: #fff;
  background: var(--bd-primary);
  border-color: var(--bd-primary);
}

.bd-icon-button {
  width: 40px;
}

.bd-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

.bd-field span {
  color: var(--bd-muted);
  font-size: 12px;
  font-weight: 800;
}

.bd-field input,
.bd-field select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--bd-text);
  background: var(--bd-surface);
  border: 1px solid var(--bd-line);
  border-radius: 11px;
}

.bd-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.bd-tab {
  padding: 0 15px;
  white-space: nowrap;
}

.bd-tab.is-active {
  color: #fff;
  background: var(--bd-primary);
  border-color: var(--bd-primary);
}

.bd-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.bd-metric,
.bd-card,
.bd-service,
.bd-person,
.bd-calendar-row {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-radius);
}

.bd-metric {
  padding: 13px;
}

.bd-metric strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.bd-metric span {
  display: block;
  margin-top: 5px;
  color: var(--bd-muted);
  font-size: 13px;
}

.bd-section {
  display: none;
}

.bd-section.is-active {
  display: grid;
  gap: 10px;
}

.bd-section-title {
  justify-content: space-between;
  margin-top: 2px;
}

.bd-section-title h3 {
  font-size: 22px;
}

.bd-list {
  display: grid;
  gap: 9px;
}

.bd-service {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.bd-service > div:nth-child(2) {
  min-width: 0;
}

.bd-service.is-occupied {
  background: var(--bd-occupied);
  border-color: #d3cbe5;
}

.bd-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
}

.bd-service-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-weight: 900;
}

.bd-person-name {
  margin-top: 4px;
  color: #0f4d8f;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.bd-person-name.is-free {
  color: var(--bd-muted);
}

.bd-children-talk {
  margin-top: 2px;
  color: var(--bd-primary);
  font-size: 12px;
  font-weight: 650;
}

.bd-meta {
  color: var(--bd-muted);
  font-size: 13px;
}

.bd-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0f4d8f;
  background: var(--bd-free);
  font-size: 12px;
  font-weight: 900;
}

.bd-pill-occupied {
  color: #3d3564;
  background: #e7e2f2;
}

.bd-person,
.bd-calendar-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  text-align: left;
}

.bd-calendar-row {
  cursor: pointer;
}

.bd-bar {
  height: 9px;
  overflow: hidden;
  background: #e8eff7;
  border-radius: 999px;
}

.bd-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bd-primary), var(--bd-primary-2));
  border-radius: inherit;
}

.bd-empty,
.bd-error,
.bd-loading-card {
  padding: 18px;
}

.bd-empty {
  color: var(--bd-muted);
  background: var(--bd-surface);
  border: 1px dashed var(--bd-line);
  border-radius: var(--bd-radius);
}

.bd-error {
  color: #9b1c1c;
  background: var(--bd-error);
  border: 1px solid #f1b6b6;
  border-radius: var(--bd-radius);
}

@media (max-width: 760px) {
  .bd-shell {
    padding: 12px;
    border-radius: 16px;
  }

  .bd-status {
    display: none;
  }

  .bd-hero {
    display: grid;
  }

  .bd-actions {
    justify-content: space-between;
  }

  .bd-controls,
  .bd-metrics {
    grid-template-columns: 1fr;
  }

  .bd-service,
  .bd-person,
  .bd-calendar-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .bd-person > .bd-pill,
  .bd-calendar-row > .bd-pill {
    grid-column: 2;
    justify-self: start;
  }
}
