@import url("/static/css/brand-palette.css?v=20261017");

.library-item-options { width: 100%; font-size: 12px; }
.library-item-options summary { cursor: pointer; color: var(--bb-teal); padding: 7px 0; }
.library-item-options .library-actions { margin-top: 6px; }
.library-default-preview { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; }
.library-salon-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.library-salon-examples figure { margin: 0; padding: 8px; background: var(--bb-powder); border-radius: 12px; }
.library-salon-examples svg { width: 100%; height: auto; color: var(--bb-teal); }
.library-salon-examples figcaption { display: grid; gap: 5px; font-size: 12px; line-height: 1.5; }
.library-color-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.library-color-row { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.library-color-row .field { flex: 1 1 120px; }
.library-color-row input[type=color] { width: 48px; height: 44px; }
.library-color-row [hidden], .library-dialog label[hidden] { display: none; }
.library-brand-logo { max-height: 140px; max-width: 100%; object-fit: contain; margin: auto; }
.library-brand-details { display: grid; gap: 12px; margin: 0; overflow-wrap: anywhere; }
.library-brand-details dt { font-size: 12px; color: var(--bb-muted); }
.library-brand-details dd { margin: 4px 0 0; }
.library-brand-swatches { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; }
.library-brand-swatches span { display: grid; gap: 5px; }
.library-brand-swatches i { width: 64px; height: 40px; border: 1px solid var(--bb-line); border-radius: 8px; }
@media (max-width: 480px) { .library-salon-examples { grid-template-columns: 1fr; } .library-salon-examples figure { display: flex; align-items: center; gap: 10px; } .library-salon-examples svg { width: 100px; flex: 0 0 100px; } }

/* Scoped additions to the existing sandbox customer settings surfaces. */
[data-view="twin"].has-customer-library > .twin-page-workspace,
[data-view="twin"].has-customer-library #twin-page-create-content,
[data-view="twin"].has-customer-library #showcase-free-twin-demo { display: none !important; }
.customer-library { min-width: 0; }
.customer-library [hidden] { display: none !important; }
.customer-library [data-library-sections] { display: grid; gap: 22px; }
#customer-brand-library [data-library-sections] { gap: 17px; }
.library-summary { margin-bottom: 22px; }
.library-summary h3 { margin: 0 0 10px; font-size: 16px; }
.library-summary p, .library-summary small, .library-empty, .library-hint { color: var(--muted, var(--bb-muted)); font-size: 13px; line-height: 1.6; }
.library-summary ul { display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; margin: 0 0 12px; padding: 0; }
.library-summary li { display: grid; gap: 3px; font-size: 13px; }
.library-summary li span { color: var(--muted, var(--bb-muted)); text-transform: capitalize; }
.library-summary li strong { overflow-wrap: anywhere; }
.library-summary small { display: block; }
.library-section .settings-card-heading { margin-bottom: 14px; }
.library-section .settings-card-heading > div { min-width: 0; flex: 1; }
.library-section .settings-card-heading p { font-size: 12px; line-height: 1.6; }
.library-count { flex: 0 0 auto; color: var(--muted, var(--bb-muted)); font-size: 12px; }
.library-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.library-actions .button { min-height: 42px; white-space: normal; text-align: center; }
.library-actions .button svg { width: 16px; height: 16px; }
.library-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 14px; margin-top: 18px; }
.library-item { display: flex; gap: 14px; min-width: 0; padding: 14px; border: 1px solid var(--line, var(--bb-line)); border-radius: 16px; background: var(--paper, var(--bb-pearl)); align-items: flex-start; }
.library-image { flex: 0 0 90px; width: 90px; height: 112px; border-radius: 12px; overflow: hidden; background: #f0eee8; }
.library-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.library-image > span { display: grid; place-items: center; height: 100%; color: var(--muted, var(--bb-muted)); }
.library-image svg { width: 26px; height: 26px; }
.library-item-body { min-width: 0; flex: 1; }
.library-item-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.library-item-title h4 { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.library-default { padding: 3px 7px; background: var(--bb-blush); border-radius: 100px; font-size: 10px; font-weight: 700; }
.library-demo-badge { display: inline-flex; align-items: center; padding: 3px 7px; border: 1px solid var(--bb-teal); background: var(--bb-blush); color: var(--bb-charcoal); border-radius: 6px; font-size: 10px; font-weight: 750; letter-spacing: .05em; line-height: 1.4; }
.library-item--demo { border-style: dashed; }
.library-demo-summary { padding-top: 12px; margin-top: 12px; border-top: 1px dashed var(--line, var(--bb-line)); }
.library-demo-summary h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; }
.library-demo-summary p { margin: 8px 0 12px; }
.library-status { font-size: 12px; color: var(--muted, var(--bb-muted)); margin: 5px 0 12px; }
.library-preview-note { font-size: 11px; line-height: 1.5; color: var(--muted, var(--bb-muted)); margin: -6px 0 12px; }
.library-empty { margin: 0; padding: 12px 0 0; }
.library-notice { border-radius: 12px; padding: 12px 15px; margin: 0 0 18px; background: var(--bb-blush); font-size: 13px; line-height: 1.6; }
.library-notice.is-error, .library-form-error, .library-item-error { color: #8b3c2e; background: #fff0eb; }
.library-form-error { padding: 12px; border-radius: 10px; }
.library-item-error { padding: 8px; border-radius: 8px; font-size: 12px; overflow-wrap: anywhere; }
.library-dialog { width: min(680px, calc(100% - 28px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid var(--line, var(--bb-line)); border-radius: 24px; background: var(--cream, var(--bb-pearl)); color: var(--ink, var(--bb-charcoal)); overflow-y: auto; box-shadow: 0 18px 80px rgba(var(--bb-ink-rgb), 0.219608); }
.library-dialog::backdrop { background: rgba(var(--bb-teal-rgb), 0.533); }
.library-dialog-form { padding: 26px; }
.library-dialog-form > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.library-dialog-form > header h2 { margin: 5px 0 0; font-size: 25px; line-height: 1.2; }
.library-dialog-form > header button { flex-shrink: 0; }
.library-dialog-form > header svg { width: 18px; height: 18px; }
.library-dialog-form > footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.library-form-content { display: grid; gap: 18px; }
.library-demo-sources { display: grid; gap: 18px; }
.library-mode-field { border: 1px solid var(--line, var(--bb-line)); border-radius: 12px; padding: 14px; background: var(--bb-blush); }
.library-demo-explanation { padding: 14px; border-radius: 12px; background: var(--bb-blush); }
.library-demo-explanation p { margin: 7px 0 0; font-size: 13px; line-height: 1.6; }
.library-dialog .field { display: grid; gap: 7px; min-width: 0; font-size: 13px; }
.library-dialog .field > span { font-weight: 650; }
.library-dialog .field input, .library-dialog .field select, .library-dialog .field textarea { box-sizing: border-box; width: 100%; min-width: 0; border: 1px solid var(--line, var(--bb-line)); border-radius: 10px; padding: 12px; background: var(--bb-pearl); color: inherit; font: inherit; min-height: 44px; }
.library-dialog .field textarea { resize: vertical; }
.library-dialog .field small { color: var(--muted, var(--bb-muted)); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.library-dialog input[type="file"] { padding: 10px; }
.library-dialog input[type="file"]::file-selector-button { border: 0; padding: 7px 10px; margin-right: 9px; border-radius: 6px; background: var(--bb-blush); color: var(--bb-charcoal); }
.library-dialog input:focus-visible, .library-dialog select:focus-visible, .library-dialog textarea:focus-visible { outline: 3px solid var(--bb-teal); outline-offset: 2px; }
.library-optional { display: grid; gap: 16px; border: 1px solid var(--line, var(--bb-line)); border-radius: 14px; padding: 18px; margin: 0; min-width: 0; }
.library-optional legend { padding: 0 7px; font-size: 13px; font-weight: 650; }
.library-generation-gate { padding: 12px; border-radius: 10px; background: var(--bb-powder); margin: 0; font-size: 13px; line-height: 1.6; }
.library-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.6; }
.library-consent input { flex: 0 0 auto; margin-top: 4px; }
.library-dialog button:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 550px) {
  .library-dialog-form { padding: 20px; }
  .library-dialog-form > header h2 { font-size: 22px; }
  .library-image { flex-basis: 66px; width: 66px; height: 85px; }
  .library-item { gap: 10px; padding: 11px; }
  .library-section .settings-card-heading { flex-wrap: wrap; }
  .library-count { margin-left: auto; }
  .library-dialog-form > footer .button { flex: 1; min-width: 110px; }
}

/* A saved logo's artwork determines whether its name needs a separate line. */
.brand-logo-format { min-width: 0; margin: 0; padding: 0; border: 0; }
.brand-logo-format legend { margin-bottom: 10px; font-weight: 600; font-size: 14px; }
.brand-logo-format > div { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-logo-format label { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line, var(--bb-line)); background: var(--bb-pearl); cursor: pointer; font-size: 14px; }
.brand-logo-format label:has(input:checked) { background: var(--bb-blush); border-color: var(--bb-teal); box-shadow: inset 0 0 0 1px rgba(var(--bb-ink-rgb), 1); }
.brand-logo-format label:focus-within { outline: 3px solid var(--bb-teal); outline-offset: 2px; }
.brand-logo-format input { appearance: auto; width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--bb-teal); }
.brand-logo-format small { display: block; margin-top: 9px; color: var(--muted, var(--bb-muted)); line-height: 1.5; }
