.favorite {
  padding: 38px 0 42px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.favorite h1 {
  font-size: 28px;
  letter-spacing: -0.025em;
}
.favorite .section-head p {
  font-size: 16px;
  margin-top: 10px;
}
.hosting-map {
  display: grid;
  grid-template-columns: 1fr 56px 2.2fr 60px 1.1fr;
  align-items: center;
  min-height: 390px;
}
.computer,
.warehouse {
  border: 1px solid #b4c5d5;
  border-radius: 7px;
  background: white;
  padding: 18px;
}
.system-title {
  display: flex;
  gap: 10px;
  align-items: center;
}
.system-title h2 {
  font-size: 17px;
  letter-spacing: -0.015em;
}
.system-title svg {
  width: 28px;
  height: 28px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}
.system-title img {
  flex-shrink: 0;
}
.hosting-map p {
  font-size: 13px;
  margin-top: 8px;
}
.cloud {
  background: #edf4fa;
  border: 1px solid #abc4dd;
  border-radius: 9px;
  padding: 20px;
}
.cloud > h2 {
  font-size: 18px;
}
.cloud > p {
  margin-top: 3px;
}
.process {
  border: 1px solid #abc4dd;
  border-radius: 7px;
  margin-top: 20px;
  padding: 18px;
  background: #f7faff;
}
.inside {
  display: grid;
  grid-template-columns: 1fr 22px 1fr;
  align-items: center;
  margin-top: 18px;
}
.service {
  border: 1px solid #b4c5d5;
  background: white;
  border-radius: 6px;
  padding: 14px;
  min-height: 145px;
}
.service img {
  margin-bottom: 7px;
}
.service h3 {
  font-size: 16px;
}
.service p {
  font-size: 12px;
}
.cache-record {
  background: #f1f4f6;
  border: 1px solid var(--line);
  padding: 9px;
  margin-top: 14px;
  font-size: 12px;
}
.cache-record code {
  display: block;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.cache-record span {
  display: block;
  margin-top: 6px;
}
.request-edge,
.query-edge {
  text-align: center;
  color: var(--blue);
  font-size: 10px;
}
.request-edge b,
.query-edge b {
  display: block;
  font-size: 27px;
  font-weight: 400;
}
.query-edge.inactive b {
  opacity: 0.35;
}
.arrow {
  text-align: center;
  color: var(--blue);
}
.mini-report {
  margin-top: 20px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 11px;
}
.mini-report > span {
  display: block;
}
.mini-report > span:last-child {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.bars {
  height: 70px;
  display: flex;
  gap: 5px;
  align-items: flex-end;
  margin-top: 16px;
}
.bars i {
  flex: 1;
  background: #7ca4cc;
}
.query-result {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  display: grid;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.query-result strong {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}
.cloud .boundary {
  margin-top: 13px;
  font-size: 11px;
}
.mode-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
}
.mode-bar .segmented {
  flex-shrink: 0;
}
.mode-bar p {
  font-size: 14px;
}
.tiny {
  font-size: 12px;
  margin-top: 15px;
}
.situation {
  background: white;
  border: 1px solid #a9b5bd;
  border-radius: 8px;
  padding: 12px 24px;
}
.situation[hidden] {
  display: none;
}
.record-row {
  display: grid;
  grid-template-columns: 190px 180px 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
}
.record-row + .record-row {
  border-top: 1px solid #e8ecef;
}
.record-row p {
  font-size: 16px;
  color: var(--ink);
}
.records {
  display: flex;
  gap: 8px;
}
.records span {
  height: 48px;
  width: 48px;
  background: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 5px;
  color: white;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 600;
}
.records .missing {
  background: white;
  border: 2px dashed #a93e3e;
  color: #a93e3e;
}
.takeaway {
  color: var(--ink);
  margin-top: 20px;
  font-size: 17px;
}
.slide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;
  color: var(--muted);
  font-size: 13px;
}
.slide-footer > div {
  display: flex;
  align-items: center;
  gap: 18px;
}
.slide-footer button {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: var(--blue);
  padding: 8px 13px;
  font: inherit;
  cursor: pointer;
}
.slide-footer button:disabled {
  opacity: 0.4;
  cursor: default;
}
.storage-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin: 22px 0 14px;
}
.storage-bar fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.storage-bar legend {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  padding: 0;
}
.storage-stats {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--muted);
}
.storage-stats div {
  display: grid;
  gap: 2px;
}
.storage-stats strong {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.storage-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 24px;
  align-items: start;
}
.treemap {
  position: relative;
  height: 460px;
  background: #f1f4f6;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.group {
  position: absolute;
  border: 1px solid #c9d3da;
  background: #e9eef2;
  transition:
    left 0.5s,
    top 0.5s,
    width 0.5s,
    height 0.5s;
}
.group h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  padding: 3px 8px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.group h3 span {
  color: var(--muted);
  font-weight: 400;
}
.tile {
  position: absolute;
  margin: 0;
  padding: 7px 9px;
  border: 0;
  border-radius: 3px;
  background: #223 var(--art) center / cover;
  color: white;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  cursor: pointer;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.8);
  transition:
    left 0.5s,
    top 0.5s,
    width 0.5s,
    height 0.5s,
    opacity 0.35s;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.78));
  pointer-events: none;
}
.tile-name,
.tile-size {
  display: block;
  position: relative;
}
.tile-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}
.tile-size {
  font-size: 12px;
  opacity: 0.9;
}
.tile.small .tile-name,
.tile.tiny .tile-name,
.tile.tiny .tile-size,
.tile.tiny .badge {
  display: none;
}
.badge {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 10px;
  font-weight: 600;
  background: #a24d42;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  text-shadow: none;
}
.tile.one-copy {
  outline: 2px dashed #c0574a;
  outline-offset: -4px;
}
.tile.one-copy .badge {
  display: block;
}
.tile.selected {
  box-shadow: inset 0 0 0 3px var(--blue), 0 0 0 2px white;
  z-index: 2;
}
.tile:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  z-index: 2;
}
.tile.leaving {
  opacity: 0;
  pointer-events: none;
}
.file-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 16px;
  min-height: 200px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.file-hint {
  font-size: 14px;
}
.file-art {
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  background: var(--art) center / cover;
}
.file-panel h2 {
  font-size: 17px;
  line-height: 1.3;
}
.file-panel p {
  font-size: 13px;
}
.file-copies {
  color: #a24d42;
  font-weight: 600;
}
.file-copies.safe {
  color: #2d6a4f;
}
.file-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.file-actions button,
.file-status button {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: var(--blue);
  padding: 8px 13px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.file-actions button.danger {
  color: #a24d42;
}
.file-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}
.file-status {
  font-size: 13px;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.file-status button {
  margin-top: 8px;
  padding: 5px 10px;
}
@media (max-width: 850px) {
  .hosting-map {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .request-edge b,
  .query-edge b {
    transform: rotate(90deg);
  }
  .request-edge span br,
  .query-edge span br {
    display: none;
  }
  .request-edge,
  .query-edge {
    font-size: 12px;
  }
  .computer,
  .warehouse {
    max-width: none;
  }
  .mini-report {
    max-width: 210px;
  }
  .hosting-map .cloud {
    padding: 18px;
  }
  .mode-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .record-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .storage-layout {
    grid-template-columns: 1fr;
  }
  .treemap {
    height: 420px;
  }
  .storage-stats {
    gap: 18px;
  }
  .file-panel {
    min-height: 0;
  }
  .favorite h1 {
    font-size: 25px;
  }
  .slide-footer {
    gap: 16px;
    flex-wrap: wrap;
  }
  .situation {
    padding: 8px 18px;
  }
  .inside {
    grid-template-columns: 1fr 24px 1fr;
  }
  .service {
    padding: 10px;
  }
  .service h3 {
    font-size: 15px;
  }
}
