:root {
  --paper: #faf9f5;
  --white: #fff;
  --ink: #273b33;
  --muted: #70786d;
  --line: #dce0d7;
  --green: #294b3d;
  --lime: #e4eaca;
  --pink: #d9a38b;
  --sand: #eae5da;
  --font: 'Segoe UI', Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b27657;
  outline-offset: 3px;
}
a {
  color: var(--green);
}
button {
  border: 0;
  background: none;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
button:hover,
a:hover {
  color: #875c42;
}
p {
  line-height: 1.65;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
  margin-bottom: 6px;
}
h3 {
  font-size: 17px;
}
small,
.fine {
  color: var(--muted);
  font-size: 12px;
}
.skip {
  position: absolute;
  top: -100px;
}
.skip:focus {
  top: 8px;
  background: white;
  padding: 12px;
  z-index: 20;
}
.topbar {
  height: 89px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 28px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2.1px;
}
.identity em {
  font-style: normal;
  font-weight: 400;
}
.identity svg {
  width: 37px;
  height: 37px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.2;
}
.studio {
  font-size: 12px;
  color: var(--muted);
  padding-left: 25px;
  border-left: 1px solid var(--line);
}
.studio span {
  padding: 0 12px;
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.private {
  font-size: 11px;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.private i {
  width: 6px;
  height: 6px;
  background: #6c8861;
  border-radius: 50%;
}
.icon-btn {
  width: 27px;
  height: 27px;
  border: 1px solid #bdc8b9;
  border-radius: 50%;
  font-family: Georgia, serif;
}
.tabs {
  display: flex;
  padding: 0 38px;
  height: 59px;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  gap: 32px;
}
.tab {
  font-size: 13px;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}
.tab.active {
  border-color: var(--green);
  font-weight: 600;
}
.tab span {
  margin-left: 5px;
  background: var(--sand);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
}
.tab-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.text-button {
  font-size: 12px;
  padding: 7px 0;
  text-align: left;
}
.layout {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 36px 24px 28px 28px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.7px;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.5;
}
.side {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px;
  margin: 3px 0;
  font-size: 12px;
  border-radius: 2px;
  text-align: left;
}
.side.active {
  background: var(--lime);
  font-weight: 600;
}
.side span {
  color: var(--muted);
  font-size: 10px;
}
.side-divider {
  border-top: 1px solid var(--line);
  margin: 24px 8px;
}
.sidebar-note {
  margin: 51px 10px 0;
}
.tiny-mark {
  font-size: 23px;
  font-family: Georgia, serif;
  color: #a3ae8c;
}
.sidebar-note h3 {
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.35;
  margin: 10px 0;
}
.sidebar-note p {
  font-size: 11px;
  color: var(--muted);
}
.sidebar-note .text-button {
  font-size: 11px;
}
.snapshot {
  border-top: 1px solid var(--line);
  margin: 34px 10px 0;
  padding-top: 20px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.9;
}
.snapshot strong {
  font-weight: 400;
  color: var(--ink);
}
.snapshot small {
  font-size: 9px;
}
main {
  padding: 38px 43px 0;
  min-width: 0;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 2px 0 28px;
  min-height: 219px;
}
.hero .eyebrow {
  margin-bottom: 15px;
}
h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 51px;
  line-height: 1.1;
  letter-spacing: -1.9px;
  font-weight: 400;
  margin: 0 0 18px;
}
h1 span {
  color: #a6674b;
}
.intro {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  margin-bottom: 0;
}
.hero-art {
  width: 256px;
  flex: 0 0 256px;
  text-align: center;
  padding-right: 15px;
}
.hero-art svg {
  width: 100%;
  height: 150px;
  stroke: #a9b19d;
  fill: none;
  stroke-width: 1.2;
}
.hero-art span {
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
  color: #879078;
}
.stats {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  gap: 35px;
  padding: 20px 0;
  margin-bottom: 31px;
}
.stat {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.stat strong {
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}
.stat span {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.2px;
}
.stats .stat-note {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
  align-self: center;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 22px;
  gap: 15px;
}
.section-heading p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.section-heading h3 {
  margin: 0;
}
.view-toggle {
  display: flex;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 4px;
}
.view-toggle button {
  font-size: 18px;
  padding: 3px 10px;
  border-radius: 2px;
}
.view-toggle .selected {
  background: var(--green);
  color: white;
}
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filters select,
.search {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  height: 40px;
  font-size: 11px;
}
.filters select {
  padding: 0 25px 0 10px;
  max-width: 185px;
  color: #516052;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 240px;
  flex: 1;
}
.search svg {
  width: 17px;
  height: 17px;
  stroke: #89967e;
  fill: none;
  stroke-width: 1.5;
  margin-left: 12px;
}
.search input {
  border: 0;
  background: none;
  padding: 0 8px 0 0;
  width: 100%;
  height: 100%;
  outline-offset: 0;
  min-width: 140px;
  color: var(--ink);
}
.search input::placeholder {
  color: #879080;
}
.active-filters:empty {
  display: none;
}
.active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -8px 0 20px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}
.filter-pill {
  padding: 6px 9px;
  background: var(--lime);
  border-radius: 2px;
}
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 33px 25px;
}
.catalog-card {
  min-width: 0;
  position: relative;
}
.cover-button {
  width: 100%;
  display: block;
  position: relative;
  padding: 0;
  text-align: left;
}
.cover {
  aspect-ratio: 3/3.6;
  background: #eae7de;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px;
  overflow: hidden;
  position: relative;
  border-radius: 2px;
  box-shadow: 0 6px 12px -13px #000;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(2px 3px 3px #0003);
  transition: transform 0.2s;
}
.cover-button:hover img {
  transform: translateY(-3px);
}
.catalog-card:nth-child(3n) .cover {
  background: #e3e7de;
}
.catalog-card:nth-child(3n + 2) .cover {
  background: #ece0d7;
}
.cover-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  background: #f8f6ec;
  border: 1px solid #d4cfc1;
  box-shadow: 3px 4px 6px #0002;
  width: 100%;
  height: 100%;
  padding: 18px;
  color: #405344;
}
.cover-placeholder .cover-name {
  font-family: Georgia, serif;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.8px;
  overflow-wrap: anywhere;
}
.cover-placeholder small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.cover-placeholder .cover-art {
  width: 100%;
  height: 55px;
  stroke: #9ba887;
  fill: none;
  stroke-width: 1.3;
}
.cover-placeholder .cover-edition {
  font-size: 10px;
  border-top: 1px solid #cdd1c1;
  padding-top: 10px;
  width: 100%;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 13px 0 7px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  gap: 5px;
}
.card-meta .badge {
  background: var(--lime);
  padding: 3px 5px;
  font-size: 8px;
  letter-spacing: 0.3px;
  color: var(--green);
}
.card-title {
  padding: 0;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
  line-height: 1.5;
}
.card-subtitle {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  min-height: 32px;
  margin-bottom: 9px;
}
.card-bottom {
  border-top: 1px solid var(--line);
  padding-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 10px;
  color: var(--muted);
}
.availability {
  display: flex;
  align-items: center;
  gap: 5px;
}
.availability i {
  width: 4px;
  height: 4px;
  background: #aab0a1;
  border-radius: 50%;
}
.availability.saved i {
  background: #6a8760;
}
.card-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}
.card-actions button {
  font-size: 17px;
  padding: 0 3px;
}
.card-actions button.on {
  color: #956740;
}
.shelf-grid.list {
  display: block;
}
.shelf-grid.list .catalog-card {
  display: grid;
  grid-template-columns: 50px 1fr 200px;
  column-gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.list .cover-button {
  grid-column: 1;
  grid-row: 1/5;
}
.list .cover {
  padding: 3px;
  aspect-ratio: 3/4;
}
.list .card-meta {
  grid-column: 2;
  margin: 0 0 4px;
}
.list .card-title {
  grid-column: 2;
}
.list .card-subtitle {
  grid-column: 2;
  margin: 0;
  min-height: 0;
}
.list .card-bottom {
  grid-column: 3;
  grid-row: 1/5;
  border: 0;
  justify-content: flex-end;
  gap: 20px;
}
.list .cover-placeholder {
  padding: 3px;
}
.list .cover-placeholder small,
.list .cover-art,
.list .cover-edition {
  display: none;
}
.list .cover-placeholder .cover-name {
  font-size: 10px;
}
.empty {
  padding: 45px 20px;
  border: 1px dashed var(--line);
  grid-column: 1/-1;
  text-align: center;
  color: var(--muted);
}
.empty h3 {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
}
.primary {
  display: inline-block;
  background: var(--green);
  color: white;
  border-radius: 3px;
  padding: 12px 17px;
  font-size: 12px;
  text-decoration: none;
}
.primary:hover {
  background: #426452;
  color: white;
}
.secondary {
  display: inline-block;
  border: 1px solid #bbc5b6;
  padding: 11px 14px;
  border-radius: 3px;
  font-size: 12px;
  text-decoration: none;
}
footer {
  margin-top: 54px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  font-size: 9px;
  letter-spacing: 1.5px;
  gap: 22px;
}
footer span {
  color: var(--muted);
  letter-spacing: 0;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 12px;
}
footer button {
  margin-left: auto;
}
.notebook-intro {
  background: #edf0e3;
  padding: 22px 25px;
  margin-bottom: 27px;
  max-width: 100%;
  border-left: 2px solid #93a17d;
}
.notebook-intro p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 900px;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.topic {
  border: 1px solid var(--line);
  padding: 21px;
}
.topic small {
  letter-spacing: 1px;
  font-size: 9px;
}
.topic h3 {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  margin: 9px 0;
}
.topic p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.note-card {
  border: 1px solid var(--line);
  background: white;
  padding: 23px;
  margin-bottom: 13px;
}
.note-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
}
.note-card h3 {
  margin: 12px 0 8px;
  font-size: 14px;
}
.note-body {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}
.note-card button {
  font-size: 11px;
  margin-top: 12px;
  margin-right: 16px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 13px;
  border-bottom: 1px solid #b9c4b4;
  color: var(--muted);
  white-space: nowrap;
}
td {
  padding: 17px 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.7;
}
td:first-child {
  font-weight: 600;
}
td small {
  display: block;
  font-size: 10px;
}
td button {
  padding: 0;
  text-align: left;
}
.progress {
  height: 3px;
  background: var(--line);
  width: 100px;
  margin-top: 7px;
}
.progress i {
  display: block;
  background: #91a377;
  height: 100%;
}
#compare-tray {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #f9faf1;
  box-shadow: 0 5px 35px #233e3333;
  border: 1px solid #c4ceba;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 11px 16px;
  z-index: 10;
  max-width: 95vw;
}
#compare-tray[hidden] {
  display: none;
}
#compare-label {
  font-size: 12px;
  white-space: nowrap;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  width: min(590px, calc(100vw - 32px));
  max-height: 90vh;
  padding: 32px;
  box-shadow: 0 15px 60px #172c3355;
}
dialog::backdrop {
  background: #182c2466;
  backdrop-filter: blur(3px);
}
.dialog-close {
  position: absolute;
  top: 9px;
  right: 13px;
  font-size: 26px;
  z-index: 2;
}
.detail-dialog {
  width: min(950px, calc(100vw - 32px));
  padding: 36px;
}
.detail-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 31px;
}
.detail-layout .cover {
  position: sticky;
  top: 0;
  padding: 14px;
  aspect-ratio: 3/4;
}
.detail-content .eyebrow {
  margin-bottom: 12px;
}
.detail-content h2 {
  font-family: Georgia, serif;
  font-size: 33px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 9px;
}
.detail-content h3 {
  margin: 23px 0 8px;
  font-size: 13px;
}
.detail-content p {
  font-size: 12px;
  color: var(--muted);
}
.detail-sub {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 19px;
}
.detail-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.metadata {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  margin: 24px 0;
}
.metadata dt {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 5px;
}
.metadata dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.source-line {
  font-size: 10px !important;
  overflow-wrap: anywhere;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.source-line a {
  display: block;
  margin-top: 5px;
}
.wide-dialog {
  width: min(1100px, calc(100vw - 32px));
}
.wide-dialog td {
  min-width: 160px;
  font-size: 12px;
}
.wide-dialog th:first-child {
  min-width: 110px;
}
.compare-brand {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--green);
}
form label {
  display: block;
  font-size: 11px;
  margin-bottom: 17px;
}
form input,
form textarea,
form select {
  width: 100%;
  display: block;
  margin-top: 7px;
  border: 1px solid #cbd2c4;
  border-radius: 3px;
  background: white;
  color: var(--ink);
  padding: 11px;
  font-size: 12px;
}
form textarea {
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
form .fine {
  margin: 13px 0 0;
}
#help-content h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 29px;
}
#help-content h3 {
  font-size: 14px;
  margin-top: 24px;
}
#help-content p,
#help-content li {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
#help-content ol,
#help-content ul {
  padding-left: 19px;
}
#toast {
  position: fixed;
  right: 24px;
  bottom: 22px;
  padding: 13px 20px;
  background: var(--green);
  color: white;
  border-radius: 4px;
  font-size: 12px;
  z-index: 40;
  max-width: 400px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
#toast.show {
  opacity: 1;
}
.portfolio-banner {
  background: #e8ede0;
  padding: 18px 22px;
  grid-column: 1/-1;
  font-size: 12px;
  color: var(--green);
  line-height: 1.7;
}
.portfolio-banner strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .shelf-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  main {
    padding-left: 55px;
    padding-right: 55px;
  }
  .hero {
    padding-right: 60px;
  }
}
@media (max-width: 1200px) {
  .topbar,
  .tabs {
    padding-left: 25px;
    padding-right: 25px;
  }
  .tabs {
    gap: 23px;
  }
  .tab-tools {
    gap: 12px;
  }
  .layout {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 18px;
    padding-right: 18px;
  }
  main {
    padding: 30px 30px 0;
  }
  .shelf-grid {
    gap: 29px 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-art {
    width: 190px;
    flex-basis: 190px;
  }
  h1 {
    font-size: 44px;
  }
  .stats {
    gap: 24px;
  }
  .stats .stat-note {
    display: none;
  }
  .studio {
    padding-left: 15px;
  }
  .filters select {
    max-width: 165px;
  }
}
@media (max-width: 900px) {
  .studio {
    display: none;
  }
  .tabs {
    gap: 20px;
    height: auto;
    min-height: 57px;
    flex-wrap: wrap;
  }
  .tab-tools {
    width: 100%;
    margin-left: 0;
    border-top: 1px solid var(--line);
    padding: 8px 0;
    justify-content: flex-end;
  }
  .tab {
    height: 55px;
  }
  .layout {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .sidebar {
    padding: 30px 10px;
  }
  .sidebar .eyebrow {
    padding-left: 10px;
  }
  .sidebar-note {
    margin-top: 30px;
  }
  .hero-art {
    display: none;
  }
  .hero {
    min-height: 210px;
  }
  main {
    padding: 27px 24px 0;
  }
  .shelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats {
    gap: 20px;
  }
  .stat {
    display: block;
  }
  .stat span {
    display: block;
  }
  .stats {
    padding: 17px 0;
  }
  .filters .search {
    flex-basis: 100%;
  }
  .filters select {
    flex: 1;
    max-width: none;
  }
  .topic-grid {
    grid-template-columns: 1fr 1fr;
  }
  .detail-layout {
    grid-template-columns: 170px 1fr;
    gap: 23px;
  }
  .cover-placeholder .cover-name {
    font-size: 23px;
  }
  .shelf-grid.list .catalog-card {
    grid-template-columns: 40px 1fr 80px;
  }
  .list .card-bottom {
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
  }
}
@media (max-width: 600px) {
  .topbar {
    height: 72px;
    padding: 0 17px;
  }
  .identity {
    font-size: 12px;
    letter-spacing: 1.5px;
    gap: 9px;
  }
  .identity svg {
    width: 28px;
    height: 28px;
  }
  .private {
    font-size: 9px;
  }
  .top-actions {
    gap: 9px;
  }
  .tabs {
    padding: 0 17px;
    gap: 17px;
  }
  .tab {
    font-size: 10px;
    height: 47px;
  }
  .tab-tools {
    justify-content: space-between;
  }
  .layout {
    display: block;
  }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 15px;
    display: flex;
    overflow: auto;
    gap: 3px;
    align-items: center;
  }
  .sidebar .eyebrow,
  .sidebar-note,
  .snapshot,
  .side-divider {
    display: none;
  }
  #regions {
    display: contents;
  }
  .side {
    width: auto;
    white-space: nowrap;
    font-size: 10px;
    padding: 8px 10px;
    margin: 0;
    gap: 7px;
  }
  .side span {
    font-size: 9px;
  }
  main {
    padding: 28px 20px 0;
  }
  .hero {
    min-height: auto;
    padding-bottom: 26px;
  }
  h1 {
    font-size: 37px;
    letter-spacing: -1.3px;
  }
  .hero .eyebrow {
    font-size: 9px;
  }
  .intro {
    font-size: 12px;
  }
  .stats {
    gap: 21px;
    margin-bottom: 27px;
  }
  .stat strong {
    font-size: 24px;
  }
  .stat span {
    font-size: 9px;
  }
  .section-heading h2 {
    font-size: 22px;
  }
  .filters {
    gap: 7px;
  }
  .filters select {
    min-width: calc(50% - 7px);
    font-size: 10px;
  }
  .shelf-grid {
    gap: 29px 16px;
  }
  .cover {
    padding: 9px;
  }
  .cover-placeholder {
    padding: 12px;
  }
  .cover-placeholder .cover-name {
    font-size: 21px;
  }
  .cover-placeholder small {
    font-size: 7px;
  }
  .card-meta {
    font-size: 8px;
    letter-spacing: 0.5px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .card-title {
    font-size: 12px;
  }
  .card-subtitle {
    font-size: 10px;
  }
  .card-bottom {
    font-size: 9px;
  }
  .card-actions button {
    font-size: 16px;
  }
  .availability {
    gap: 3px;
  }
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .detail-dialog {
    padding: 28px 22px;
  }
  .detail-layout {
    display: block;
  }
  .detail-layout .cover {
    width: 155px;
    position: static;
    margin-bottom: 24px;
  }
  .detail-content h2 {
    font-size: 28px;
  }
  .detail-content .cover-placeholder {
    height: 185px;
  }
  .metadata {
    gap: 15px;
  }
  dialog {
    padding: 28px 22px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .note-head {
    flex-wrap: wrap;
  }
  footer {
    gap: 10px;
    flex-wrap: wrap;
  }
  footer span {
    font-size: 10px;
  }
  #compare-tray {
    gap: 10px;
    padding: 10px;
  }
  #compare-label {
    font-size: 10px;
  }
  #compare-tray .primary {
    font-size: 10px;
    padding: 10px;
  }
  #compare-tray .text-button {
    font-size: 10px;
  }
}
