/* Photographic, reference-led Oasis Pools design library. */
.visualize-page { background: #f5f8f8; color: #0e3a47; font-family: Archivo, sans-serif; }
.visualize-page [hidden] { display: none !important; }
.library-container { width: min(1540px, 100%); margin-inline: auto; padding-inline: 44px; }
.library-intro { padding-top: 120px; padding-bottom: 28px; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.library-intro h1 { font-size: clamp(32px, 3.3vw, 48px); line-height: 1.08; letter-spacing: -.045em; font-weight: 600; }
.library-intro p { margin-top: 13px; color: #587078; font-size: 15px; line-height: 1.65; max-width: 620px; }
.library-link { font-size: 13px; color: #215b64; text-decoration: underline; text-underline-offset: 4px; }
#visualizer { scroll-margin-top: 94px; }
.library-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 338px; gap: 30px; align-items: start; }
.library-preview { position: sticky; top: 100px; min-width: 0; }
.library-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.library-views { display: flex; gap: 3px; padding: 4px; border: 1px solid #c7d8db; border-radius: 9px; background: white; }
.library-views button { min-height: 38px; padding: 7px 13px; border-radius: 6px; font-size: 12px; color: #496c73; cursor: pointer; }
.library-views button[aria-pressed="true"] { background: #0e3a47; color: white; }
.library-count { color: #5b737a; font-size: 11px; white-space: nowrap; }
.library-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 13px; background: #edf2f0; border: 1px solid #d9e3e1; }
.library-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.library-stage[data-view="shell"] { background: #fff; }
.library-stage[data-view="shell"] img { padding: 24px; }
.library-loading { position: absolute; inset: 0; display: grid; place-content: center; color: #3d6870; font-size: 13px; background: #edf2f0; }
.library-image-error { position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; padding: 30px; text-align: center; background: #eef4f2; }
.library-image-error p { max-width: 340px; line-height: 1.6; font-size: 14px; }
.library-image-error a { text-decoration: underline; }
.library-image-caption { display: flex; justify-content: space-between; align-items: start; gap: 14px; padding-block: 12px; font-size: 12px; line-height: 1.6; }
.library-image-caption strong { font-weight: 600; }
.library-image-caption span { color: #60777d; text-align: right; max-width: 58%; }
.library-reference-note { padding: 11px 14px; background: #e8f0ee; color: #42676a; border-left: 3px solid #93b5ac; font-size: 12px; line-height: 1.6; }
.library-selection { margin-top: 21px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid #cfdde0; }
.library-selection > div { flex: 1 1 230px; }
.library-selection h2 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; line-height: 1.3; }
.library-selection p { color: #57747a; font-size: 12px; margin-top: 5px; line-height: 1.6; }
.library-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 11px 16px; min-height: 44px; border-radius: 7px; border: 1px solid #a7bec2; background: #fff; color: #164650; font-size: 13px; font-weight: 600; text-align: center; cursor: pointer; }
.library-button:hover { background: #e8f1f0; }
.library-button--primary { background: #d3f26a; border-color: #d3f26a; color: #173c37; }
.library-button--primary:hover { background: #c4e65d; }
.library-text-button { min-height: 44px; color: #275f68; text-decoration: underline; text-underline-offset: 4px; font-size: 12px; cursor: pointer; }
.library-status { min-height: 20px; font-size: 12px; line-height: 1.5; color: #36705f; margin-top: 9px; }
.library-status.is-error { color: #98432f; }
.library-controls { background: #fff; border: 1px solid #d4e0e1; border-radius: 13px; overflow: hidden; }
.library-control-section { padding: 23px; }
.library-control-section + .library-control-section { border-top: 1px solid #dae4e5; }
.library-control-section h2 { font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
.library-control-section > p { font-size: 12px; color: #60777f; line-height: 1.6; margin-top: 8px; }
.library-field { display: block; margin-top: 16px; font-size: 12px; font-weight: 600; color: #345b64; }
.library-field select { display: block; width: 100%; margin-top: 7px; padding: 10px; border-radius: 6px; border: 1px solid #b6ccd0; background: #fff; min-height: 44px; font-family: inherit; font-size: 14px; color: #153d49; cursor: pointer; }
.library-model-meta { margin-top: 12px; line-height: 1.6; font-size: 12px; color: #637b80; }
.library-model-meta a { display: inline-block; margin-top: 9px; color: #215b64; text-decoration: underline; text-underline-offset: 3px; }
.library-palettes { display: grid; gap: 9px; margin-top: 17px; }
.library-palette { display: grid; grid-template-columns: 46px 1fr 16px; align-items: center; gap: 12px; text-align: left; border: 1px solid #cbdadb; border-radius: 8px; padding: 12px; cursor: pointer; color: #18434e; }
.library-palette[aria-pressed="true"] { background: #edf5f2; border-color: #2e8274; box-shadow: inset 0 0 0 1px #2e8274; }
.library-palette-mark { display: flex; align-items: center; width: 46px; height: 37px; }
.library-palette-mark i { flex-shrink: 0; display: block; width: 27px; height: 33px; border: 1px solid #ffffffdf; border-radius: 3px; transform: rotate(-10deg); }
.library-palette-mark i + i { margin-left: -16px; transform: rotate(8deg); }
.library-palette-mark i:last-child { transform: rotate(20deg); }
.library-palette strong { display: block; font-size: 13px; font-weight: 600; }
.library-palette small { display: block; margin-top: 4px; font-size: 11px; line-height: 1.5; color: #638078; }
.library-palette-check { width: 15px; height: 15px; border: 1px solid #b4cac4; border-radius: 50%; }
.library-palette[aria-pressed="true"] .library-palette-check { border: 4px solid #287664; background: #fff; }
.library-materials { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; padding-top: 16px; font-size: 11px; }
.library-materials dt { color: #6b8286; }
.library-materials dd { color: #294f58; text-align: right; margin: 0; }
.library-fine-print { font-size: 10px !important; line-height: 1.65 !important; }
.library-consult { padding: 21px 23px; background: #eaf2ef; border-top: 1px solid #d4e1df; }
.library-consult .library-button { width: 100%; }
.library-consult p { color: #557770; font-size: 11px; line-height: 1.6; margin-top: 9px; text-align: center; }
.library-disclaimer { max-width: 1040px; color: #647b81; font-size: 11px; line-height: 1.75; margin-top: 23px; }
.library-how { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; padding-top: 58px; padding-bottom: 64px; }
.library-how h2 { font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -.035em; }
.library-how h3 { font-size: 15px; font-weight: 600; }
.library-how p { margin-top: 12px; font-size: 13px; line-height: 1.75; color: #58757c; }
.library-share-fallback { font-size: 12px; }
.library-share-fallback input { display: block; width: 100%; padding: 10px; margin-top: 6px; background: white; border: 1px solid #adc5c9; }
.library-mobile-shortcut { display: none; }
.visualize-page :is(button, a, select, input):focus-visible { outline: 3px solid #168778; outline-offset: 4px; }
.visualize-page button:disabled { opacity: .5; cursor: not-allowed; }
.visualize-page .oasis-chat__fab { bottom: 20px; right: 16px; width: 46px; height: 46px; animation: none; }
.visualize-page .oasis-chat__panel { bottom: 80px; }
@media (max-width: 1180px) {
  .library-container { padding-inline: 25px; }
  .library-workspace { grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; }
  .library-count { display: none; }
  .library-intro > a { max-width: 170px; }
}
@media (max-width: 800px) {
  .library-container { padding-inline: 20px; }
  .library-intro { padding-top: 104px; padding-bottom: 24px; display: block; }
  .library-intro p { font-size: 14px; }
  .library-intro > a { display: inline-block; max-width: none; margin-top: 15px; }
  .library-workspace { grid-template-columns: 1fr; gap: 22px; }
  .library-preview { position: static; }
  .library-views { width: 100%; }
  .library-views button { flex: 1; font-size: 11px; padding: 7px 8px; }
  .library-stage { border-radius: 9px; scroll-margin-top: 80px; }
  .library-mobile-shortcut { display: flex; justify-content: space-between; align-items: center; min-height: 44px; margin-bottom: 10px; color: #215b64; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
  .library-control-section .library-mobile-shortcut { margin-top: 12px; margin-bottom: 0; }
  .library-image-caption { font-size: 10px; gap: 10px; }
  .library-reference-note { font-size: 11px; }
  .library-selection { margin-top: 14px; gap: 12px; padding-top: 14px; }
  .library-selection > div { flex-basis: 100%; }
  .library-control-section { padding: 22px; }
  .library-controls { scroll-margin-top: 90px; }
  .library-how { grid-template-columns: 1fr; gap: 27px; padding-block: 38px; }
  .visualize-page .oasis-chat__panel { bottom: 0; }
}
@media (max-width: 400px) { .library-container { padding-inline: 14px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
