/* «Доступность» → «Все эксперты»: кто свободен в выбранный момент. */
.avail-view-switch {
  margin: -8px 0 16px;
}
.kc-page {
  --kc-cols: minmax(210px, 250px) minmax(200px, 260px) 1fr;
}
.kc-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}
.kc-nav {
  grid-template-columns: 44px minmax(180px, auto) 44px auto auto;
  justify-content: start;
  margin-bottom: 14px;
}
.kc-time {
  margin: 0;
}
.kc-time select {
  min-width: 96px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #cfd5de;
  border-radius: 12px;
  background: #fff;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.kc-nav .today-return.active {
  border-color: #1f55d8;
  background: #eaf0ff;
  color: #1849bd;
}
.kc-services .chip {
  min-height: 36px;
  padding: 6px 14px;
}
.kc-moment {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}
.kc-moment b {
  color: var(--ink);
}
.kc-tabs {
  margin-bottom: 14px;
}
.kc-tab-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tone);
}
.status-tab.kc-tone-all {
  --tone: #202630;
  --tone-bg: #e3e7ee;
}
.status-tab.kc-tone-free {
  --tone: #22744f;
  --tone-bg: #e2f3e8;
}
.status-tab.kc-tone-busy {
  --tone: #a0680c;
  --tone-bg: #fff1d1;
}
.status-tab.kc-tone-off {
  --tone: #6b7380;
  --tone-bg: #eceff3;
}
.kc-axis {
  display: grid;
  grid-template-columns: var(--kc-cols);
  gap: 16px;
  padding: 0 17px 4px;
}
.kc-axis-pad {
  grid-column: 1 / 3;
}
.kc-axis-scale {
  position: relative;
  height: 16px;
  color: #8a93a0;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.kc-axis-scale span {
  position: absolute;
  transform: translateX(-50%);
}
.kc-axis-scale span:first-child {
  transform: none;
}
.kc-axis-scale span:last-child {
  transform: translateX(-100%);
}
.kc-group + .kc-group {
  margin-top: 18px;
}
.kc-group-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}
.kc-group-title small {
  margin-left: 4px;
  color: var(--muted);
  font-weight: 600;
}
.kc-list {
  display: grid;
  gap: 8px;
}
.kc-row {
  display: grid;
  grid-template-columns: var(--kc-cols);
  align-items: center;
  gap: 6px 16px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.kc-row:hover {
  border-color: #cdd3dc;
  box-shadow: 0 4px 14px rgba(28, 39, 59, 0.05);
}
.kc-row.is-off {
  background: #fafbfc;
}
.kc-row.is-off .kc-name strong {
  color: var(--muted);
}
.kc-who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.kc-who .avatar {
  flex: none;
}
.kc-name {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.kc-name .free-badges {
  display: flex;
  flex-wrap: wrap;
}
.kc-name .free-badge {
  white-space: nowrap;
}
.kc-name strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kc-state {
  display: grid;
  justify-items: start;
  gap: 2px;
  min-width: 0;
}
.kc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.kc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.kc-pill.free {
  background: var(--green-bg);
  color: #21733f;
}
.kc-pill.busy {
  background: #fff1d1;
  color: #8a5a08;
}
.kc-pill.off {
  background: #eceff3;
  color: #5d6673;
}
.kc-note,
.kc-next {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.kc-note {
  color: #4d5765;
}
.kc-next b {
  color: #21733f;
  font-variant-numeric: tabular-nums;
}
/* Полоса дня 09:00–23:00 */
.kc-strip {
  position: relative;
  height: 26px;
  border-radius: 9px;
  background: repeating-linear-gradient(135deg, #f3f5f8 0 6px, #eceff3 6px 8px);
  overflow: hidden;
}
.kc-strip i,
.kc-cursor,
.kc-slot {
  position: absolute;
  top: 0;
  bottom: 0;
}
.kc-work {
  background: #fff;
  box-shadow: inset 0 0 0 1px #e3e7ed;
}
.kc-busy {
  top: 4px !important;
  bottom: 4px !important;
  border-radius: 5px;
  background: #f2c879;
  opacity: 0.85;
}
.kc-busy.block {
  background: repeating-linear-gradient(135deg, #e9b3ab 0 4px, #f7dcd8 4px 7px);
}
.kc-busy.hold {
  background: #c9d6f6;
}
.kc-busy.gcal {
  background: #cfd4dc;
}
.kc-slot {
  top: 7px;
  bottom: 7px;
  width: 12px;
  margin-left: -1px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #3aa564;
  opacity: 0.85;
  transition: transform 0.15s, opacity 0.15s;
}
.kc-slot:hover,
.kc-slot:focus-visible {
  opacity: 1;
  transform: scaleY(1.35);
}
.kc-slot.now {
  background: #21733f;
  opacity: 1;
}
.kc-past {
  background: rgba(236, 239, 243, 0.72);
}
.kc-cursor {
  width: 2px;
  margin-left: -1px;
  background: #285de5;
  pointer-events: none;
}
.kc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 16px 0 6px;
  color: var(--muted);
  font-size: 13px;
}
.kc-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.kc-legend i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.kc-legend .lg-work {
  background: #fff;
}
.kc-legend .lg-busy {
  background: #f2c879;
  border-color: #e4b45c;
}
.kc-legend .lg-slot {
  background: #3aa564;
  border-color: #3aa564;
}
.kc-legend .lg-cursor {
  width: 3px;
  border: 0;
  border-radius: 2px;
  background: #285de5;
}
.kc-hint {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 1100px) {
  .kc-page {
    --kc-cols: minmax(190px, 230px) 1fr;
  }
  .kc-axis {
    display: none;
  }
  .kc-strip {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px), (max-width: 1000px) and (pointer: coarse) {
  .avail-view-switch {
    display: flex;
    margin: 0 0 12px;
  }
  .avail-view-switch button {
    flex: 1;
  }
  .kc-nav {
    grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr) 44px;
    margin-bottom: 10px;
  }
  .kc-nav .date-control {
    grid-column: 2 / 4;
  }
  .kc-time {
    grid-column: 1 / 3;
  }
  .kc-time select {
    width: 100%;
  }
  .kc-nav .today-return {
    grid-column: 3 / 5;
    width: 100%;
  }
  .kc-toolbar > * {
    min-width: 0;
  }
  .kc-services {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .kc-services::-webkit-scrollbar {
    display: none;
  }
  .kc-row {
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }
  .kc-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kc-tabs .status-tab {
    min-height: 38px;
    padding: 0 6px;
  }
}
