/* Color controls belong with the part of the design they change. */
.page-customize #shape-picker { margin-top: 22px; }
.page-customize #text-color-picker { margin-bottom: 24px; }
.page-customize .shape-add { color: #000; }
.page-customize .shape-add:hover { color: #000; }
.more-shapes-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 11px 14px; margin-top: 12px; border: 1px solid #0f3d2e45; border-radius: 10px; background: #fff; color: #0f3d2e; font: inherit; font-size: 12px; font-weight: 750; }
.more-shapes-button svg { width: 18px; height: 18px; }
.more-shapes-button:hover { background: #edf2e9; border-color: #0f3d2e; }
.more-shapes-button:focus-visible, .shape-add:focus-visible, .shape-category:focus-visible, .shape-library-close:focus-visible { outline: 2px solid #0f3d2e; outline-offset: 3px; }
html.is-shape-library-open { overflow: hidden; }
.shape-library { width: min(820px, calc(100% - 40px)); max-height: min(820px, calc(100dvh - 48px)); padding: 30px; border: 1px solid #0f3d2e30; border-radius: 24px; background: #f5f6f2; color: #141815; box-shadow: 0 24px 90px #0f3d2e30; overflow: hidden; }
.shape-library[open] { display: flex; flex-direction: column; }
.shape-library::backdrop { background: #10241cd1; backdrop-filter: blur(4px); }
.shape-library-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-shrink: 0; }
.shape-library-kicker { margin: 0 0 7px; color: #0f3d2e; font-size: 11px; font-weight: 750; }
.shape-library-heading h2 { margin: 0; font-size: clamp(25px, 4vw, 34px); letter-spacing: -.04em; line-height: 1.2; }
.shape-library-close { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; padding: 10px; border: 1px solid #0f3d2e33; border-radius: 50%; background: #fff; color: #141815; }
.shape-library-close svg { width: 18px; height: 18px; }
.shape-library svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#shape-library-help { margin: 15px 0 20px; color: #526056; font-size: 13px; line-height: 1.65; flex-shrink: 0; }
.shape-search-label { margin-bottom: 8px; color: #141815; font-size: 12px; font-weight: 750; flex-shrink: 0; }
.shape-search-field { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 0 14px; border: 1px solid #0f3d2e45; border-radius: 12px; background: #fff; flex-shrink: 0; }
.shape-search-field:focus-within { outline: 2px solid #0f3d2e; outline-offset: 2px; }
.shape-search-field > svg { width: 19px; height: 19px; color: #526056; flex-shrink: 0; }
.shape-search-field input { min-width: 0; width: 100%; min-height: 46px; padding: 10px 0; border: 0; outline: 0; background: transparent; color: #141815; font: inherit; font-size: 15px; }
.shape-search-field input::placeholder { color: #657167; }
.shape-library-filters { display: flex; flex-wrap: wrap; gap: 7px; padding: 18px 0 0; flex-shrink: 0; }
.shape-category { min-height: 34px; padding: 7px 12px; border: 1px solid #0f3d2e30; border-radius: 999px; background: #fff; color: #0f3d2e; font: inherit; font-size: 11px; font-weight: 750; }
.shape-category[aria-pressed="true"] { background: #0f3d2e; color: #fff; border-color: #0f3d2e; }
.shape-library-count { min-height: 17px; margin: 17px 0 12px; color: #526056; font-size: 11px; line-height: 1.5; flex-shrink: 0; }
.shape-library-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #9ba99d transparent; padding: 5px 8px 5px 5px; margin: -5px -8px -5px -5px; }
.shape-library .shape-add { min-height: 100px; gap: 10px; padding: 14px 5px 10px; background: #fff; font-size: 10px; line-height: 1.35; }
.shape-library .shape-add:hover { background: #e5ede2; }
.shape-library .shape-add svg { width: 39px; height: 39px; fill: currentColor; stroke: none; flex-shrink: 0; }
.shape-library .shape-add span { min-height: 27px; display: flex; align-items: center; text-align: center; }
.shape-library-empty { margin: 20px 0 28px; padding: 25px; border: 1px dashed #0f3d2e33; border-radius: 12px; color: #526056; text-align: center; font-size: 14px; line-height: 1.7; }
.shape-library-error { margin: 15px 0 0; color: #a1342b; font-size: 12px; line-height: 1.6; flex-shrink: 0; }
@media (max-width: 600px) {
  .shape-library { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 22px 18px; border-radius: 18px; }
  .shape-library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .shape-library .shape-add { min-height: 94px; }
  .shape-library-filters { gap: 6px; padding-top: 15px; }
  .shape-category { padding-inline: 10px; }
  .shape-search-field input { font-size: 16px; }
}
@media (max-height: 560px) {
  .shape-library[open] { display: block; overflow-y: auto; }
  .shape-library-grid { overflow: visible; }
}
