.volume-gap-panel {
  margin-top: 20px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #e0d9cc;
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 12px 34px rgba(32, 33, 30, 0.07);
}

.volume-gap-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5dfd3;
}

.volume-gap-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ff5b35;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 4px 4px 0 #20211e;
}

.volume-gap-header small {
  display: block;
  margin-bottom: 2px;
  color: #a45a45;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.volume-gap-header h2 {
  margin: 0;
  color: #20211e;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.volume-gap-header p {
  margin: 3px 0 0;
  color: #77756e;
  font-size: 0.68rem;
}

.volume-gap-totals {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-gap-totals span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 750;
  white-space: nowrap;
}

.volume-gap-totals span b {
  font-size: 1rem;
}

.volume-gap-totals .is-owned {
  background: #20211e;
  color: #fff;
}

.volume-gap-totals .is-owned b {
  color: #c7e64b;
}

.volume-gap-totals .is-missing {
  background: #ffe2d8;
  color: #8b321e;
}

.volume-gap-totals .is-missing b {
  color: #ff5b35;
}

.volume-gap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 94px));
  justify-content: start;
  gap: 7px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.volume-gap-grid li {
  min-width: 0;
  height: 50px;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 10px;
}

.volume-gap-grid li > button,
.volume-gap-grid li > span {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px;
  border: 0;
  color: inherit;
}

.volume-gap-grid li b {
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.volume-gap-grid li small {
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.volume-gap-grid li.is-owned {
  border-color: #cbd9a0;
  background: #edf5cf;
  color: #334016;
}

.volume-gap-grid li.is-owned button {
  background: transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.volume-gap-grid li.is-owned button:hover {
  background: #20211e;
  color: #c7e64b;
}

.volume-gap-grid li.is-owned button:active {
  transform: scale(0.96);
}

.volume-gap-grid li.is-owned button:focus-visible {
  outline: 3px solid rgba(255, 91, 53, 0.42);
  outline-offset: -3px;
}

.volume-gap-grid li.is-missing {
  border-color: #ead4cb;
  background: #fff3ee;
  color: #96371f;
}

.volume-gap-grid li.is-missing small {
  color: #d06548;
}

.file-row[id^="file-volume-"] {
  scroll-margin-top: 105px;
}

.file-row.is-volume-jump {
  animation: volume-file-highlight 1.8s ease-out;
}

@keyframes volume-file-highlight {
  0%, 30% { background: #eaf6bd; box-shadow: inset 5px 0 0 #ff5b35; }
  100% { background: transparent; box-shadow: inset 0 0 0 transparent; }
}

@media (max-width: 700px) {
  .volume-gap-panel {
    padding: 16px;
    border-radius: 13px;
  }

  .volume-gap-header {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
  }

  .volume-gap-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .volume-gap-totals {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .volume-gap-grid {
    grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
    justify-content: stretch;
    gap: 6px;
    margin-top: 14px;
  }

  .volume-gap-grid li {
    height: 46px;
  }
}
