/* Career Lab Portfolio Polish Pack */

:root {
  --polish-panel: rgba(15, 23, 42, .74);
  --polish-line: rgba(148, 163, 184, .16);
  --polish-blue: #93c5fd;
  --polish-green: #86efac;
  --polish-muted: #94a3b8;
}

.backup-summary-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.backup-summary-item {
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--polish-line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, .12), transparent 44%),
    rgba(2, 6, 23, .38);
}

.backup-summary-label {
  display: block;
  color: var(--polish-blue);
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.backup-summary-value {
  display: block;
  font-size: .95rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-summary-sub {
  display: block;
  margin-top: 4px;
  color: var(--polish-muted);
  font-size: .78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.polish-button {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 999px;
  padding: 7px 10px;
  color: #dbeafe;
  background: rgba(15, 23, 42, .72);
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 160ms cubic-bezier(.22,1,.36,1),
    border-color 160ms ease,
    background 160ms ease;
}

.polish-button:hover,
.polish-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, .38);
  background: rgba(37, 99, 235, .22);
  outline: none;
}

#backup-log {
  transition:
    max-height 280ms cubic-bezier(.22,1,.36,1),
    opacity 220ms ease,
    padding 220ms ease,
    border-color 220ms ease;
}

body.logs-collapsed #backup-log {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  overflow: hidden;
}

body.portfolio-mode #backup-log {
  display: none;
}

body.portfolio-mode .backup-summary-card {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.limit-list {
  position: relative;
}

.limit-list:not(.expanded)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .94));
  border-radius: 0 0 18px 18px;
}

#docker-list.limit-10:not(.expanded) > *:nth-child(n+11),
#reports-list.limit-7:not(.expanded) > *:nth-child(n+8),
#timer-list.limit-6:not(.expanded) > *:nth-child(n+7) {
  display: none;
}

.polish-list-footer {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

body.portfolio-mode #docker-list > *:nth-child(n+9),
body.portfolio-mode #reports-list > *:nth-child(n+7),
body.portfolio-mode #timer-list > *:nth-child(n+6) {
  display: none !important;
}

body.portfolio-mode .panel {
  box-shadow:
    0 18px 54px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.035);
}

body.portfolio-mode .log-box {
  display: none !important;
}

.motion-dock .portfolio-mode-toggle.active {
  color: var(--polish-green);
  background: rgba(34, 197, 94, .14);
  border-color: rgba(134, 239, 172, .28);
}

.badge.warn {
  color: #bfdbfe;
  border-color: rgba(147, 197, 253, .22);
  background: rgba(59, 130, 246, .10);
}

@media (max-width: 760px) {
  .backup-summary-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .polish-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .backup-summary-card {
    grid-template-columns: 1fr;
  }
}

@media print {
  .motion-dock,
  .cmdk,
  #backup-log {
    display: none !important;
  }

  body {
    background: #020617 !important;
  }
}
