body.lib {
  overflow: auto;
  height: auto;
  min-height: 100%;
}
.libbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: env(safe-area-inset-top, 0);
  z-index: 5;
}
.libbar .brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-right: auto;
}
.libbar .brand small {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-left: 0.5rem;
}
.libmain .wrap {
  max-width: 1080px;
}
.hero,
.hero p {
  position: relative;
}
.hero {
  background: var(--night);
  color: #fff;
  border-radius: 26px;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  overflow: hidden;
  margin-bottom: 1.6rem;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 61, 0.35), rgba(255, 200, 61, 0) 70%);
}
.hero h1,
.sec,
.vol h3 {
  font-family: var(--serif);
  font-weight: 400;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin: 0.2rem 0 0.4rem;
  position: relative;
}
.hero p {
  margin: 0 0 1.2rem;
  opacity: 0.9;
  line-height: 1.5;
}
.hero .cta {
  position: relative;
  text-decoration: none;
}
.sec,
.vol h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}
.vols {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.bar,
.vol {
  overflow: hidden;
}
.vol {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.vol:hover {
  transform: translateY(-3px);
}
.vol .cv {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #cfe0f3, #fde9b0);
}
.vol .cv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vol .in {
  padding: 0.8rem 1rem 1rem;
}
.vol .meta,
.vol .tn {
  font-weight: 800;
  color: var(--ink-soft);
  font-size: 0.82rem;
}
.vol h3 {
  font-size: 1.25rem;
  margin: 0.15rem 0 0.5rem;
}
.bar {
  height: 6px;
  border-radius: 6px;
  background: var(--line);
}
.bar span {
  display: block;
  height: 100%;
  background: var(--sun);
}
.vol .meta {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-top: 0.4rem;
}
.addon,
.form input,
.form select {
  border: 1px solid var(--line);
  background: var(--surface);
}
.addon {
  display: flex;
  gap: 1rem;
  align-items: center;
  border-radius: 20px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
}
.addon .lock {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  font-size: 1.4rem;
  flex: none;
}
.addon .lock.has-cv {
  width: 64px;
  height: 64px;
  position: relative;
  overflow: hidden;
}
.addon .lock.has-cv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.addon .lock.has-cv span {
  position: absolute;
  right: 3px;
  bottom: 3px;
  font-size: 0.9rem;
  line-height: 1;
  background: var(--surface);
  border-radius: 8px;
  padding: 3px;
}
.addon b {
  display: block;
  font-size: 1.05rem;
}
.addon .muted,
.form label {
  font-size: 0.92rem;
}
.addon .act {
  margin-left: auto;
  flex: none;
}
.btn2 {
  display: inline-block;
  border: 2px solid var(--night);
  color: var(--ink);
  background: 0 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 800;
  text-decoration: none;
}
.form {
  max-width: 440px;
  margin: 0 auto;
}
.form input,
.form select {
  width: 100%;
  font: inherit;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  color: var(--ink);
  margin: 0.4rem 0 1rem;
}
.form label {
  font-weight: 800;
}
.form .cta {
  width: 100%;
}
.err {
  color: #c0392b;
  font-weight: 700;
}
.form .cta,
.profiles {
  justify-content: center;
}
.profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.4rem 0;
}
.pf {
  border: 2px solid var(--line);
  background: var(--surface);
  border-radius: 22px;
  padding: 1.2rem 1.4rem;
  min-width: 140px;
  text-align: center;
  font-weight: 800;
}
.pf .av {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 0.4rem;
}
.pf.add {
  border-style: dashed;
  color: var(--ink-soft);
}
.xsub {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 1.6rem 0 0.8rem;
}
.extras {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.extra {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 2px dashed var(--wood);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  transition: transform 0.2s ease;
}
.extra:hover {
  transform: translateY(-2px);
}
.extra .ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  font-size: 1.5rem;
  flex: none;
}
.extra.has-cv {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.extra .xcv {
  display: block;
  aspect-ratio: 4/3;
  background: var(--surface-2);
}
.extra .xcv img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.extra.has-cv > span:last-child {
  padding: 0.8rem 1.1rem 1rem;
}
.extra b {
  display: block;
  font-size: 1.02rem;
  line-height: 1.25;
}
.extra .muted {
  font-size: 0.88rem;
  line-height: 1.35;
}

.libfoot {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 0 1rem 2rem;
}
.libfoot a {
  color: inherit;
}
