.customer-page {
  width: min(760px, calc(100% - 1.5rem));
  margin: clamp(1rem, 4vw, 2rem) auto 3rem;
}
.customer-hero {
  padding: clamp(1.1rem, 5vw, 2rem);
  background: var(--yellow);
  border-radius: 16px;
}
.customer-hero h1 {
  margin: .45rem 0 0;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.customer-panel {
  margin-top: 1rem;
  padding: clamp(1rem, 4vw, 1.65rem);
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow-wrap: anywhere;
}
.customer-panel h2 { margin: 0 0 .65rem; font-size: 1.3rem; }
.customer-panel > :first-child { margin-top: 0; }
.customer-panel > :last-child { margin-bottom: 0; }
.customer-panel article { border-top: 1px solid var(--line); margin: 1rem 0 0; padding-top: 1rem; }
.customer-panel article h2,
.customer-panel article h3 { margin: 0; }
.customer-panel input:not([type="hidden"]),
.customer-panel select,
.customer-panel textarea {
  display: block;
  width: min(100%, 30rem);
  margin: .35rem 0 .75rem;
  padding: .65rem;
  border: 1px solid var(--muted);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.customer-panel [role="status"] {
  border-left: 4px solid var(--yellow);
  background: #faf4d8;
  border-radius: 8px;
  padding: .75rem 1rem;
}
.customer-panel ul { padding-left: 1.2rem; }
.customer-panel li { margin-bottom: .8rem; }
.customer-panel li a { margin: .3rem 0; }

.customer-panel .library-books { list-style: none; padding: 0; margin: 1rem 0; }
.customer-panel .library-book {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  margin: 0;
}
.library-book img { width: 64px; height: 96px; object-fit: contain; background: var(--paper); border-radius: 5px; }
.library-book strong, .library-book small { display: block; }
.library-book small { color: var(--muted); }
.library-book .library-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .8rem; }

.library-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }
.library-toolbar label { flex: 1 1 12rem; }
.customer-panel .library-toolbar input,
.customer-panel .library-toolbar select { width: 100%; margin-bottom: 0; min-height: 44px; }
.library-order-list { margin: 1.5rem 0; }
.library-order-list article p { margin: .25rem 0; }
.library-order-list ul { margin: .5rem 0; }
.library-order-list li { margin: .15rem 0; }
