.home-control-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.home-control-count {
  color: #f6c96f;
  background: rgba(245, 181, 68, 0.1);
  border: 1px solid rgba(245, 181, 68, 0.26);
  border-radius: 999px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: inline-grid;
  place-items: center;
  font-weight: 850;
}

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

.home-control-item {
  width: 100%;
  min-width: 0;
  color: #f5f7ff;
  text-align: left;
  cursor: pointer;
  background: rgba(7, 16, 31, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-radius: 14px !important;
  grid-template-columns: 40px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 11px;
  padding: 11px 12px !important;
  display: grid;
  box-shadow: none !important;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.home-control-item:hover {
  background: rgba(18, 31, 54, 0.96) !important;
  border-color: rgba(245, 181, 68, 0.28) !important;
  transform: translateY(-1px);
}

.home-control-item:focus-visible {
  outline: none;
  border-color: rgba(245, 181, 68, 0.58) !important;
  box-shadow: 0 0 0 3px rgba(245, 181, 68, 0.12) !important;
}

.home-control-icon {
  width: 40px;
  height: 40px;
  color: #f6c96f;
  background: rgba(245, 181, 68, 0.1);
  border: 1px solid rgba(245, 181, 68, 0.18);
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.home-control-icon svg,
.home-control-chevron svg,
.home-control-empty svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-control-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.home-control-copy b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.88rem;
}

.home-control-copy small {
  color: #98a5bf;
  overflow-wrap: anywhere;
  line-height: 1.35;
  font-size: 0.74rem;
}

.home-control-chevron {
  color: #75839e;
  display: grid;
  place-items: center;
}

.home-control-item.warning .home-control-icon {
  color: #ffb64d;
  background: rgba(255, 182, 77, 0.11);
  border-color: rgba(255, 182, 77, 0.23);
}

.home-control-item.accent .home-control-icon {
  color: #be9cff;
  background: rgba(156, 115, 255, 0.11);
  border-color: rgba(156, 115, 255, 0.23);
}

.home-control-empty {
  color: #dfe8f6;
  background: rgba(67, 214, 160, 0.07);
  border: 1px solid rgba(67, 214, 160, 0.2);
  border-radius: 14px;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 14px;
  display: grid;
}

.home-control-empty > span {
  width: 38px;
  height: 38px;
  color: #43d6a0;
  background: rgba(67, 214, 160, 0.1);
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.home-control-empty div {
  display: grid;
  gap: 3px;
}

.home-control-empty small {
  color: #98a5bf;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .home-control-item {
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    gap: 9px;
    padding: 10px !important;
  }

  .home-control-icon {
    width: 38px;
    height: 38px;
  }

  .home-control-copy b {
    font-size: 0.83rem;
  }

  .home-control-copy small {
    font-size: 0.7rem;
  }
}


.home-day-summary-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.home-summary-status {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.home-summary-status svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-summary-status.active {
  color: #f6c96f;
  background: rgba(245, 181, 68, 0.1);
  border: 1px solid rgba(245, 181, 68, 0.22);
}

.home-summary-status.done {
  color: #43d6a0;
  background: rgba(67, 214, 160, 0.1);
  border: 1px solid rgba(67, 214, 160, 0.22);
}

.home-day-summary-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.home-day-summary-stats span {
  min-width: 0;
  background: rgba(7, 16, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 13px;
  padding: 12px;
  display: grid;
  gap: 4px;
}

.home-day-summary-stats b {
  color: #f5f7ff;
  font-size: 1rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.home-day-summary-stats small {
  color: #8f9cb4;
  font-size: 0.72rem;
}

.home-day-summary-note {
  border-radius: 13px;
  padding: 12px 13px;
  line-height: 1.45;
  font-size: 0.8rem;
}

.home-day-summary-note.active {
  color: #e8edf8;
  background: rgba(245, 181, 68, 0.07);
  border: 1px solid rgba(245, 181, 68, 0.18);
}

.home-day-summary-note.done {
  color: #dff8ed;
  background: rgba(67, 214, 160, 0.07);
  border: 1px solid rgba(67, 214, 160, 0.18);
}

@media (max-width: 700px) {
  .home-day-summary-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-day-summary-stats span {
    padding: 10px;
  }
}


/* 3.1.12: пятая сводная карточка состояния */
.home-summary-card[data-axis-home-state-card] .home-summary-icon {
  color: #6fd9ff;
  background: rgba(52, 176, 235, 0.1);
  border-color: rgba(52, 176, 235, 0.2);
}

.home-summary-card[data-axis-home-state-card] em.warning {
  color: #ffb64d;
}

.home-summary-card[data-axis-home-state-card] .home-summary-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
