:root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #e4e6dc;
  background: #171d1b;
  color-scheme: dark;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
a:focus-visible,
input:focus-visible,
select:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #ddbf80;
  outline-offset: 4px;
}
.library-top {
  flex-shrink: 0;
  border-bottom: 1px solid #34413a;
  padding: 24px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.library-brand {
  font-family: Georgia, serif;
  font-size: 21px;
  letter-spacing: -0.5px;
}
.library-brand span {
  margin-left: 14px;
  color: #94a79b;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 1px;
}
.library-top > a:last-child {
  font-size: 13px;
  color: #aebbb0;
}
.library-layout {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  max-width: 1600px;
  margin: auto;
}
.library-sidebar {
  overflow-anchor: none;
  border-right: 1px solid #34413a;
  padding: 30px 22px;
  min-height: 0;
  overflow: auto;
}
.sidebar-label {
  color: #82978a;
  font-size: 11px;
  letter-spacing: 2px;
  margin: 0 10px 20px;
}
.tree-all,
#resource-tree summary a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 5px;
}
#resource-tree summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
#resource-tree summary::-webkit-details-marker {
  display: none;
}
#resource-tree summary::before {
  content: '›';
  color: #7f9487;
  width: 12px;
  flex-shrink: 0;
}
#resource-tree details[open] > summary::before {
  content: '⌄';
}
#resource-tree summary a {
  flex: 1;
  font-size: 14px;
}
#resource-tree summary span {
  font-size: 11px;
  color: #8fa496;
}
#resource-tree a:hover {
  background: #26332c;
}
#resource-tree a[aria-current] {
  background: #314137;
  color: #ecd499;
}
.tree-all {
  font-size: 14px;
  margin-bottom: 10px;
}
.tree-group {
  padding-left: 12px;
}
#resource-tree .tree-group summary a {
  font-size: 12px;
  color: #a7b9ab;
}
.tree-section-label {
  margin: 15px 10px 4px 18px;
  padding-top: 11px;
  border-top: 1px solid #34413a;
  color: #c0b389;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.tree-section-label:first-of-type {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 0;
}
.tree-entry {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  padding: 7px 10px 7px 18px;
  color: #91a398;
}
.sidebar-note {
  border-top: 1px solid #34413a;
  padding: 22px 8px;
  font-size: 11px;
  color: #82978a;
  line-height: 1.8;
}
.library-main {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 40px 42px 60px;
}
.library-eyebrow {
  color: #b0a37d;
  font-size: 10px;
  letter-spacing: 2px;
  margin: 0 0 14px;
}
.library-main h1 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -1.5px;
  margin: 0 0 12px;
  font-weight: 600;
}
#library-description {
  color: #9bad9f;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}
.library-toolbar {
  display: flex;
  align-items: end;
  gap: 16px;
  padding: 0 0 28px;
}
.library-toolbar label {
  font-size: 11px;
  color: #9eb1a3;
}
.library-toolbar label:first-child {
  flex: 1;
}
.library-toolbar input,
.library-toolbar select {
  display: block;
  margin-top: 8px;
  border: 1px solid #425347;
  border-radius: 6px;
  background: #202b24;
  color: #e4e6dc;
  padding: 12px 14px;
  width: 100%;
  font-size: 13px;
}
.library-toolbar input::placeholder {
  color: #748a7b;
}
.library-count {
  color: #93a799;
  font-size: 12px;
  border-top: 1px solid #34413a;
  padding-top: 20px;
  margin: 0 0 20px;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 18px;
}
.library-card {
  border: 1px solid #35473a;
  border-radius: 8px;
  background: #202b24;
  overflow: hidden;
}
.library-card:hover {
  border-color: #897d58;
}
.card-main {
  display: block;
}
.card-image {
  height: 166px;
  background: radial-gradient(ellipse at bottom, #374137, #26312a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
}
.card-image img {
  max-width: 100%;
  max-height: 132px;
  object-fit: contain;
  image-rendering: pixelated;
}
.card-image small {
  color: #819989;
  font-size: 10px;
}
.card-symbol {
  font-size: 47px;
  color: #a3b795;
  font-family: Georgia, serif;
}
.card-copy {
  padding: 18px 16px 14px;
}
.card-copy p {
  margin: 0 0 10px;
  font-size: 10px;
  color: #9eb69f;
}
.card-copy h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.55;
  min-height: 46px;
}
.card-footer {
  border-top: 1px solid #35473a;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  font-size: 10px;
  color: #889f8e;
}
.card-footer a {
  color: #d3bc81;
}
.library-empty {
  padding: 50px 0;
  color: #9bad9f;
  line-height: 1.8;
}
.library-footer {
  font-size: 11px;
  color: #7f9384;
  line-height: 1.9;
  margin-top: 36px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .library-layout {
    flex: 1;
    min-height: 0;
    width: 100%;
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .library-main {
    padding: 30px 24px;
  }
  .library-top {
    flex-shrink: 0;
    padding: 22px 24px;
  }
}
@media (max-width: 650px) {
  .library-layout {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .library-top {
    flex-shrink: 0;
    padding: 18px;
  }
  .library-brand {
    font-size: 18px;
  }
  .library-brand span {
    display: block;
    margin: 6px 0 0;
    font-size: 9px;
  }
  .library-sidebar {
    flex-shrink: 0;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #34413a;
    padding: 16px;
    max-height: 250px;
  }
  .sidebar-label,
  .sidebar-note {
    display: none;
  }
  .library-main {
    flex: 1;
    padding: 26px 18px;
  }
  .library-toolbar {
    gap: 10px;
    flex-wrap: wrap;
  }
  .library-toolbar label:first-child {
    flex-basis: 100%;
  }
  .library-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 12px;
  }
  .card-image {
    height: 140px;
  }
  .card-copy {
    padding: 13px 12px;
  }
  .card-copy h2 {
    font-size: 13px;
  }
  .card-footer {
    padding: 10px 12px;
  }
}
