.handbook { max-width: 1440px; margin: 35px auto; padding: 0px 24px; color: rgb(230, 240, 247); }
.handbook h1 { font-size: 34px; }
.handbook p { color: rgb(143, 168, 185); }
.hb-filters { display: flex; gap: 12px; }
.hb-filters input { flex: 1 1 0%; min-width: 120px; }
.handbook input, .handbook select, .handbook button { padding: 12px; border: 1px solid rgb(41, 72, 92); border-radius: 9px; background: rgb(11, 33, 49); color: inherit; }
.handbook button { cursor: pointer; }
.handbook button:focus-visible { outline: rgb(84, 212, 229) solid 2px; }
.hb-layout { display: grid; grid-template-columns: minmax(0px, 1fr) 420px; gap: 20px; }
.hb-grid { display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); gap: 12px; }
.hb-grid button { text-align: left; display: flex; align-items: center; gap: 12px; min-height: 85px; }
.hb-grid img { width: 55px; height: 55px; object-fit: contain; }
.hb-grid button.is-selected { border-color: rgb(84, 212, 229); background: rgb(20, 50, 71); }
.hb-layout aside { background: rgb(11, 28, 42); border: 1px solid rgb(41, 72, 92); border-radius: 12px; padding: 24px; align-self: start; position: sticky; top: 90px; max-height: 80vh; overflow: auto; }
.hb-layout aside > img { height: 130px; width: 100%; object-fit: contain; }
.hb-layout dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0px; border-bottom: 1px solid rgb(32, 56, 74); }
.hb-layout dd { margin: 0px; color: rgb(97, 219, 234); text-align: right; }
.hb-layout dt { color: rgb(169, 191, 204); }
.hb-description { white-space: pre-line; line-height: 1.6; }
.handbook nav { display: flex; gap: 16px; align-items: center; margin-top: 20px; }
.handbook button:disabled { opacity: 0.4; cursor: default; }
@media (max-width: 1000px) {
  .hb-layout { grid-template-columns: minmax(0px, 1fr) 340px; }
  .hb-grid { grid-template-columns: repeat(2, minmax(0px, 1fr)); }
}
@media (max-width: 700px) {
  .hb-layout { display: flex; flex-direction: column; }
  .hb-layout aside { position: static; max-height: none; width: 100%; box-sizing: border-box; }
  .hb-filters { flex-wrap: wrap; }
  .hb-grid { grid-template-columns: repeat(2, minmax(0px, 1fr)); }
  .hb-grid button { font-size: 12px; flex-direction: column; }
  .handbook { padding: 0px 12px; }
  .hb-layout section { width: 100%; }
}
.handbook .hb-layout { align-items: start; }
.handbook .hb-layout > section { min-width: 0px; align-self: start; margin: 0px !important; padding: 0px !important; }
.handbook .hb-grid { margin: 0px; padding: 0px; align-content: start; }
.handbook .hb-filters { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(115px, 1fr)) auto auto; gap: 12px; align-items: end; }
.hb-filters label { display: flex; flex-direction: column; gap: 8px; min-width: 0px; font-size: 12px; color: rgb(143, 168, 185); }
.handbook .hb-filters input, .handbook .hb-filters select { box-sizing: border-box; width: 100%; height: 46px; min-width: 0px; }
.handbook .hb-filters button { height: 46px; white-space: nowrap; }
.handbook .hb-grid button { box-sizing: border-box; min-width: 0px; min-height: 98px; overflow: hidden; }
.hb-item-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0px; }
.hb-item-copy b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.4; font-weight: 600; }
.hb-item-copy small { font-size: 12px; line-height: 1.4; color: rgb(143, 168, 185); }
.handbook .hb-grid img { flex-shrink: 0; filter: drop-shadow(rgba(0, 0, 0, 0.333) 0px 2px 4px); }
.handbook .hb-layout aside { max-height: calc(100dvh - 110px); overscroll-behavior: contain; scrollbar-gutter: stable; margin: 0px !important; }
.handbook .hb-layout aside h2 { overflow-wrap: anywhere; }
.handbook .hb-layout dl { margin: 18px 0px; }
.handbook .hb-layout dl dt { min-width: 0px; overflow-wrap: anywhere; }
.handbook .hb-layout dl dd { flex-shrink: 0; max-width: 45%; overflow-wrap: anywhere; }
.handbook [data-status] { min-height: 22px; margin: 16px 0px; }
.handbook [data-pages] { flex-wrap: wrap; justify-content: space-between; padding-bottom: 24px; scroll-margin-top: 100px; }
.handbook [data-items] { scroll-margin-top: 95px; }
@media (max-width: 1200px) {
  .handbook .hb-filters { grid-template-columns: repeat(4, minmax(0px, 1fr)); }
  .hb-search { grid-column: span 2; }
}
@media (max-width: 700px) {
  .handbook .hb-filters { grid-template-columns: repeat(2, minmax(0px, 1fr)); }
  .hb-search { grid-column: span 2; }
  .handbook .hb-layout aside { max-height: none; scroll-margin-top: 90px; }
  .handbook .hb-grid button { flex-direction: row; gap: 8px; padding: 12px; min-height: 105px; }
  .handbook .hb-grid img { width: 38px; height: 46px; }
  .hb-item-copy b { font-size: 12px; }
  .hb-item-copy small { font-size: 12px; }
  .handbook h1 { font-size: 28px; }
}
