.ws04-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 58px;
}

.ws04-card {
  overflow: hidden;
  border: 1px solid #dce5ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 26px -20px #17334870;
}

.ws04-window {
  position: relative;
  display: block;
  color: #10283a;
  text-decoration: none;
}

.ws04-window:focus-visible {
  outline: 2px solid #007abb;
  outline-offset: -3px;
}

.ws04-toolbar {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 6px 10px;
  border-bottom: 1px solid #dce5ec;
  background: #edf1f4;
  color: #425568;
}

.ws04-controls {
  display: flex;
  gap: 4px;
}

.ws04-controls i {
  width: 9px;
  height: 9px;
  border: 1px solid #0d263918;
  border-radius: 50%;
  background: #ff6059;
}

.ws04-controls i:nth-child(2) { background: #ffbd2e; }
.ws04-controls i:nth-child(3) { background: #28c840; }

.ws04-address {
  overflow: hidden;
  padding: 4px 7px;
  border: 1px solid #dce5ec;
  border-radius: 6px;
  background: #fff;
  font: 600 11px/1.3 ui-monospace, monospace;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws04-nav {
  color: #647688;
  font: 600 15px/1 system-ui, sans-serif;
  white-space: nowrap;
}

.ws04-screen {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f4f7f9;
  border-bottom: 1px solid #dce5ec;
}

img.ws04-screen { height: auto; }

.ws04-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 8px;
  padding: 11px 14px 8px;
  background: linear-gradient(#edf2f7, #f4f7fa 79%, #dce6ee 80%, #eef3f7 86%);
}

.ws04-book {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 25px;
  justify-items: center;
  gap: 4px;
  min-height: 0;
}

.ws04-book img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px #10283a38);
}

.ws04-book span {
  color: #17384f;
  font: 650 11px/1.15 system-ui, sans-serif;
  text-align: center;
}

.ws04-zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid #cbd9e2;
  border-radius: 7px;
  background: #fff;
  color: #00588c;
  font: 600 17px/1 system-ui, sans-serif;
}

.ws04-window:hover .ws04-zoom { background: #eaf4fa; }
.ws04-shelf-window .ws04-toolbar > .ws04-nav:last-child { width: 20px; visibility: hidden; }
.ws04-shelf-window .ws04-zoom { top: 6px; bottom: auto; width: 25px; height: 25px; }
.ws04-card-body { padding: 17px 18px 19px; }
.ws04-card h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.015em; }
.ws04-card-body p { margin-top: 7px; color: #506173; font-size: 15px; line-height: 1.5; }

@media (max-width: 950px) and (min-width: 701px) {
  .ws04-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .ws04-cards { grid-template-columns: 1fr; gap: 10px; margin-bottom: 38px; }
  .ws04-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 11px;
  }
  .ws04-window { overflow: hidden; border: 1px solid #dce5ec; border-radius: 7px; }
  .ws04-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 5px;
    min-height: 15px;
    padding: 2px 4px;
  }
  .ws04-controls { gap: 2px; }
  .ws04-controls i { width: 4px; height: 4px; }
  .ws04-address { min-height: 7px; padding: 0; font-size: 0; }
  .ws04-nav { display: none; }
  .ws04-screen { border-bottom: 0; }
  .ws04-shelf { gap: 3px; padding: 4px 5px 3px; }
  .ws04-book { grid-template-rows: minmax(0, 1fr); }
  .ws04-book span { display: none; }
  .ws04-zoom { right: 3px; bottom: 3px; width: 18px; height: 18px; font-size: 12px; }
  .ws04-shelf-window .ws04-zoom { top: auto; bottom: 3px; width: 18px; height: 18px; }
  .ws04-card-body { padding: 0; }
  .ws04-card h3 { font-size: 16px; }
  .ws04-card-body p { margin-top: 4px; font-size: 14px; line-height: 1.38; }
}
