/* Buttons ---------------------------------------------------------------- */

.btn {
  --btn-bg: transparent;
  --btn-color: var(--text);
  --btn-border: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-color);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    opacity 0.2s linear;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn[disabled],
.btn.is-busy {
  opacity: 0.5;
  pointer-events: none;
}

.btn--solid {
  --btn-bg: var(--ink);
  --btn-color: #ffffff;
  --btn-border: var(--ink);
  box-shadow: 0 8px 22px rgba(18, 18, 24, 0.16);
}

.btn--solid:hover {
  --btn-bg: #232327;
  --btn-border: #232327;
  box-shadow: 0 12px 28px rgba(18, 18, 24, 0.22);
}

.btn--outline {
  --btn-bg: var(--paper-raised);
  --btn-border: var(--line-strong);
}

.btn--outline:hover {
  --btn-bg: #ffffff;
  --btn-color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.btn--ghost {
  --btn-border: transparent;
  --btn-color: var(--text-soft);
}

.btn--ghost:hover {
  --btn-bg: var(--surface-sunken);
  --btn-color: var(--ink);
}

.btn--danger {
  --btn-border: var(--line);
  --btn-color: var(--text-soft);
  --btn-bg: var(--paper-raised);
}

.btn--danger:hover {
  --btn-bg: var(--ink);
  --btn-color: #ffffff;
  --btn-border: var(--ink);
}

.btn--sm {
  padding: 8px 15px;
  font-size: 0.8rem;
}

.btn--lg {
  padding: 14px 26px;
  font-size: 0.94rem;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-raised);
  color: var(--text-soft);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.icon-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.inline-form {
  display: contents;
}

/* Hero ------------------------------------------------------------------- */

.hero {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(56px, 9vw, 108px) 0 clamp(28px, 4vw, 44px);
}

.hero__title {
  max-width: 20ch;
  margin-top: 18px;
  font-family: var(--font-ui);
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--ink);
}

.hero__title .accent {
  font-size: 1.14em;
  letter-spacing: -0.01em;
}

.hero__lede {
  max-width: 56ch;
  margin-top: 20px;
  color: var(--text-soft);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  font-weight: 300;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

/* Pie chart -------------------------------------------------------------- */

.pie {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: clamp(28px, 5vw, 48px) 0 clamp(32px, 5vw, 56px);
}

.pie__chart {
  --read-pct: 0%;
  position: relative;
  width: clamp(190px, 26vw, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    var(--ink) 0 var(--read-pct),
    #dedbd5 var(--read-pct) 100%
  );
  box-shadow: var(--shadow-soft), 0 0 0 10px rgba(255, 255, 255, 0.85);
  transition: background 0.7s var(--ease);
}

.pie__chart::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(10, 10, 10, 0.08);
}

.pie__badge {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-raised);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}

.pie__value {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.pie__unit {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.pie__caption {
  margin-left: 4px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.pie__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.pie__legend li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--text-soft);
}

.pie__legend strong {
  color: var(--ink);
  font-weight: 600;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot--read {
  background: var(--ink);
}

.dot--unread {
  background: #dedbd5;
  border: 1px solid rgba(10, 10, 10, 0.12);
}

/* Stats ------------------------------------------------------------------ */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: clamp(44px, 6vw, 76px);
}

.stat {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  text-align: center;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
    transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.stat:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.stat__value {
  display: block;
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--ink);
}

.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Shelf toolbar ---------------------------------------------------------- */

.shelf {
  scroll-margin-top: 100px;
}

.shelf__header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 26px;
}

.filters {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.filters__pill {
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 400;
  transition: background 0.28s var(--ease), color 0.28s var(--ease);
}

.filters__pill:hover {
  color: var(--ink);
  background: var(--surface-sunken);
}

.filters__pill.is-active {
  background: var(--ink);
  color: #ffffff;
  font-weight: 500;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 300px;
  max-width: 430px;
  padding: 5px 6px 5px 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-raised);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.search:focus-within {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.search__icon {
  position: absolute;
  left: 15px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--text-dim);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.search__input {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 300;
}

.search__input::placeholder {
  color: var(--text-dim);
}

.search__input:focus {
  outline: none;
}

.search__input::-webkit-search-cancel-button {
  display: none;
}

.search__clear {
  display: none;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-sunken);
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.search__clear.is-visible {
  display: grid;
  place-items: center;
}

.search__clear:hover {
  background: var(--ink);
  color: #ffffff;
}

/* Results + grid --------------------------------------------------------- */

.grid-wrap {
  animation: fade-up 0.5s var(--ease) both;
}

.grid-wrap.is-loading {
  opacity: 0.45;
  transition: opacity 0.2s linear;
}

.results {
  margin-bottom: 18px;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.results strong {
  color: var(--ink);
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 16px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Book card -------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    background 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.3s linear;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: #ffffff;
  box-shadow: var(--shadow-lift);
}

.card.is-removing {
  opacity: 0;
  transform: scale(0.95);
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.card__date {
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.card__title {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.card__title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.card__author {
  color: var(--text-soft);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
}

.card__description {
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.65;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

/* Badge ------------------------------------------------------------------ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge--solid {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.badge--outline {
  background: transparent;
  color: var(--text-soft);
}

/* Empty state ------------------------------------------------------------ */

.empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(48px, 8vw, 88px) 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.empty__glyph {
  font-size: 1.9rem;
  color: var(--text-dim);
}

.empty__title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.empty__text {
  max-width: 42ch;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 300;
}

.empty .btn {
  margin-top: 10px;
}

/* Alerts ----------------------------------------------------------------- */

.alert {
  margin-bottom: 22px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-raised);
  box-shadow: var(--shadow-soft);
  font-size: 0.88rem;
  font-weight: 300;
}

.alert--error {
  border-left-color: #7d1f1f;
  color: var(--text);
}

.alert[hidden] {
  display: none;
}

/* Breadcrumb + detail ---------------------------------------------------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 34px 0 24px;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 300;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-soft);
}

.detail__cover {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #f4f2ee 0%, #e9e7e1 55%, #f7f6f3 100%);
  overflow: hidden;
}

.detail__monogram {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.4rem);
  line-height: 1;
  color: var(--ink);
}

.detail__spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  width: 1px;
  background: var(--line-strong);
}

.detail__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.detail__id {
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.detail__title {
  margin-top: 16px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.detail__author {
  margin-top: 6px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-soft);
}

.detail__description {
  max-width: 68ch;
  margin-top: 22px;
  color: var(--text-soft);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.75;
}

.detail__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin-top: 30px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail__facts dt {
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.detail__facts dd {
  margin-top: 6px;
  font-size: 0.92rem;
  font-weight: 400;
}

.detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

/* Overlays: shared ------------------------------------------------------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.overlay[hidden] {
  display: none;
}

.overlay__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 24, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.overlay.is-open .overlay__scrim {
  opacity: 1;
}

/* Overlays: right sliding drawer ---------------------------------------- */

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(480px, 100%);
  height: 100%;
  border-left: 1px solid var(--line);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-panel);
  transform: translateX(102%);
  transition: transform 0.42s var(--ease);
}

.overlay.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(22px, 4vw, 32px) 20px;
  border-bottom: 1px solid var(--line);
}

.drawer__title {
  margin-top: 6px;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.drawer__title .accent {
  font-size: 1.12em;
  color: var(--text-soft);
}

.drawer__form {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.drawer__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px clamp(22px, 4vw, 32px);
}

.drawer__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px clamp(22px, 4vw, 32px);
  border-top: 1px solid var(--line);
  background: rgba(250, 249, 247, 0.9);
}

/* Overlays: centred confirm dialog -------------------------------------- */

.modal__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(430px, calc(100% - 40px));
  padding: clamp(24px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-lift);
  transform: translate(-50%, -46%) scale(0.97);
  opacity: 0;
  transition: transform 0.34s var(--ease), opacity 0.28s var(--ease);
}

.overlay.is-open .modal__panel {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.modal__title {
  margin-top: 6px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.modal__text {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 300;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}

/* Forms ------------------------------------------------------------------ */

.form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label {
  padding: 0;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field__input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 0.92rem;
  font-weight: 300;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.field__input::placeholder {
  color: var(--text-dim);
}

.field__input:focus {
  outline: none;
  border-color: var(--ink);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06);
}

.field__input--area {
  resize: vertical;
  min-height: 120px;
  line-height: 1.65;
  font-family: inherit;
}

.field.has-error .field__input {
  border-color: #7d1f1f;
}

.field__error {
  color: #7d1f1f;
  font-size: 0.78rem;
  font-weight: 300;
  min-height: 1em;
}

.choices {
  display: flex;
  gap: 10px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.87rem;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.choice:hover {
  border-color: var(--ink);
}

.choice input {
  accent-color: #0a0a0a;
  margin: 0;
}

.choice:has(input:checked) {
  border-color: var(--ink);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.05);
}

/* Toasts ----------------------------------------------------------------- */

.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 40px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-lift);
  font-size: 0.87rem;
  font-weight: 300;
  animation: toast-in 0.32s var(--ease) both;
}

.toast--error {
  border-left-color: #7d1f1f;
}

.toast.is-leaving {
  animation: toast-out 0.28s var(--ease) both;
}

.toast__mark {
  color: var(--ink);
  font-weight: 600;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(18px);
  }
}

/* Error page ------------------------------------------------------------- */

.error-page {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(80px, 14vh, 180px) 0;
  text-align: center;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 16vw, 9rem);
  line-height: 0.9;
  color: var(--ink);
}

.error-page__title {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 600;
}

.error-page__message {
  max-width: 52ch;
  color: var(--text-soft);
  font-weight: 300;
}

.error-page__list {
  display: grid;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 300;
}

.error-page .btn {
  margin-top: 18px;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 900px) {
  .detail {
    grid-template-columns: 1fr;
  }

  .detail__cover {
    max-width: 200px;
    aspect-ratio: 1;
  }
}

@media (max-width: 620px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .filters {
    justify-content: space-between;
  }

  .filters__pill {
    flex: 1;
    padding: 9px 10px;
    text-align: center;
  }

  .search {
    max-width: none;
  }

  .search__submit {
    display: none;
  }

  .drawer__panel {
    border-radius: var(--radius-lg) 0 0 0;
  }
}
