:root {
  --lbq-input-radius: 8px;
}

[hidden] {
  display: none !important;
}

.lbq-u-text-left {
  text-align: left;
}

.lbq-u-text-center {
  text-align: center;
}

.lbq-u-text-right {
  text-align: right;
}

.lbq-u-mr-auto {
  margin-right: auto;
}

.lbq-hub {
  height: 100%;
  box-sizing: border-box;
  padding: 32px 16px;
  overflow: auto;
}

.lbq-hub__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.lbq-hub__empty {
  background: #fff;
  border: 1px solid #d0d7e2;
  border-radius: 12px;
  padding: 16px;
}

.lbq-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.lbq-card {
  display: block;
  background: linear-gradient(160deg, #ffffff, #f6f9fc);
  border: 1px solid #d7deea;
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  color: #1d2735;
  box-shadow: 0 2px 8px rgba(10, 35, 66, 0.05);
}

.lbq-card--interactive {
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.lbq-card--interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 35, 66, 0.12);
}

.lbq-card--editable {
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.lbq-card--editable:hover,
.lbq-card--editable:focus-within {
  border-color: #0a4b78;
  background: #f7fafc;
}

.lbq-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eaf1fb;
  color: #1e5b9d;
  font-size: 22px;
  margin-bottom: 12px;
}

.lbq-card__title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.lbq-label {
  display: block;
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #50575e;
}

.lbq-card__desc {
  display: block;
  color: #556170;
  font-size: 14px;
}

.lbq-page {
  padding: 24px 0;
}

.lbq-page__content {
  width: min(100%, var(--global-content-width, 1290px));
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.lbq-page__content--narrow {
  width: min(100%, 900px);
}

.lambique-partners {
  padding: 24px 0;
}

.lambique-projects {
  padding: 24px 0;
}

.lambique-partners__inner {
  width: min(100%, var(--global-content-width, 1290px));
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.lambique-projects__inner {
  width: min(100%, var(--global-content-width, 1290px));
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.lpr-shell .lambique-partners__inner {
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.lpr-shell .lambique-projects__inner {
  width: 100%;
  margin: 0;
}

.lbq-filters {
  display: grid;
  gap: 10px;
  width: 100%;
}

.lbq-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.lbq-toolbar__left,
.lbq-toolbar__right {
  min-width: 0;
}

.lbq-toolbar__right {
  margin-left: auto;
}

.lbq-toolbar--align-center {
  align-items: center;
}

.lbq-toolbar--align-end {
  align-items: flex-end;
}

.lbq-toolbar__title {
  margin: 0;
  line-height: 1.2;
}

.lbq-with-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lbq-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef0f2;
  color: #1d2327;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  transform: none;
}

.lbq-badge--compact {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 10px;
  text-transform: uppercase;
}

.lbq-toolbar__actions .lbq-action-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}

.lbq-title {
  margin: 0;
  font-size: 30px;
}

.lbq-filters__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

.lbq-filters__row--align-center {
  align-items: center;
}

.lbq-filters__row--align-end {
  align-items: flex-end;
}

.lbq-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}

.lbq-field--inline {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  row-gap: 0;
}

.lbq-field label {
  font-size: 12px;
  color: #556170;
}

.lbq-field--inline>label,
.lbq-field--inline>span {
  margin: 0;
  font-weight: 600;
}

.lbq-field input,
.lbq-field input[type="text"],
.lbq-field input[type="email"],
.lbq-field input[type="number"],
.lbq-field input[type="search"],
.lbq-field input[type="url"],
.lbq-field input[type="password"],
.lbq-field select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #ccd6e2;
  border-radius: var(--lbq-input-radius);
}

.lbq-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccd6e2;
  border-radius: var(--lbq-input-radius);
}

.lbq-field--textarea-72 textarea {
  min-height: 72px;
}

.lbq-field--inline>input,
.lbq-field--inline>select,
.lbq-field--inline>textarea,
.lbq-field--inline>.lbq-field__control {
  min-width: 0;
}

.lbq-field--inline.lbq-field--textarea {
  align-items: start;
}

.lbq-group-label {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a8594;
}

.lbq-edit__field {
  min-width: 0;
}

.lbq-edit__field.lbq-field--inline {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.lbq-edit__field.lbq-field--inline.lbq-field--textarea {
  align-items: start;
}

.lbq-edit__field > span {
  display: block;
  margin: 0;
  font-weight: 600;
  color: #1d2735;
}

.lbq-edit__field input,
.lbq-edit__field select,
.lbq-edit__field textarea {
  width: 100%;
  box-sizing: border-box;
}

.lbq-edit__field textarea {
  min-height: 96px;
  resize: vertical;
}

.lbq-summary-field {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d7deea;
  border-radius: var(--lbq-input-radius);
  background: #f7f9fc;
  color: #1d2735;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.lbq-summary-field__text {
  min-width: 0;
  flex: 1 1 auto;
}

.lbq-summary-field__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lbq-summary-field--media {
  min-height: 200px;
  padding: 12px;
  position: relative;
}

.lbq-summary-field--media .lbq-summary-field__text {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.lbq-summary-field--media .lbq-summary-field__text img {
  display: block;
  max-width: 100%;
  max-height: 176px;
  object-fit: contain;
}

.lbq-summary-field--media .lbq-summary-field__actions {
  position: absolute;
  inset: 12px;
  display: flex;
  width: auto;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}

.lbq-summary-field--media .lbq-summary-field__actions .lbq-button {
  pointer-events: auto;
}

/* Core pattern for "label / summary / action" rows.
   New code should use `.lbq-summary-field--editable` for rows with a reveal-on-hover
   action. Plain `.lbq-summary-field` remains supported for legacy usages.
   The action button inside `.lbq-summary-field__actions` should use
   `.lbq-button--ghost`: it keeps the row visually quiet until hovered/focused,
   consistent with the reveal-on-hover behavior below. */
@media (hover: hover) {
  .lbq-edit__field .lbq-summary-field--editable .lbq-summary-field__actions,
  .lbq-edit__field .lbq-summary-field__actions {
    opacity: 0;
    transition: opacity 0.12s ease;
  }

  .lbq-edit__field:hover .lbq-summary-field--editable .lbq-summary-field__actions,
  .lbq-edit__field:focus-within .lbq-summary-field--editable .lbq-summary-field__actions,
  .lbq-edit__field:hover .lbq-summary-field__actions,
  .lbq-edit__field:focus-within .lbq-summary-field__actions {
    opacity: 1;
  }
}

.lbq-edit-page {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lbq-edit__shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  gap: 16px;
  padding: 16px;
  box-sizing: border-box;
}

.lbq-pdf-panel {
  position: relative;
  flex: 0 0 50%;
  min-width: 0;
  display: flex;
  background: #ffffff;
  border: 1px solid #d7deea;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.08),
    0 2px 10px rgba(15, 23, 42, 0.05);
}

.lbq-pdf-panel__delete-form {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.lbq-pdf-panel:hover .lbq-pdf-panel__delete-form,
.lbq-pdf-panel__delete-form:focus-within {
  opacity: 1;
}

.lbq-pdf-panel__delete {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}

.lbq-pdf-panel__viewer {
  width: 100%;
  height: 100%;
  border: 0;
}

.lbq-pdf-panel__empty {
  margin: auto;
  padding: 24px;
  color: #556170;
  text-align: center;
}

.lbq-pdf-panel__form {
  width: 100%;
  display: flex;
}

.lbq-pdf-panel__dropzone {
  flex: 1 1 auto;
  margin: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  border: 2px dashed #ccd6e2;
  border-radius: 10px;
  color: #556170;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.lbq-pdf-panel__dropzone:hover,
.lbq-pdf-panel__dropzone.is-dragover {
  border-color: #2271b1;
  background: #f0f6fc;
}

.lbq-pdf-panel__dropzone.is-uploading {
  opacity: 0.6;
  pointer-events: none;
}

.lbq-edit__page-shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d7deea;
  border-radius: 14px;
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.08),
    0 2px 10px rgba(15, 23, 42, 0.05);
}

.lbq-edit__page-header {
  flex: 0 0 auto;
  padding: 24px;
}

.lbq-edit__page-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.lbq-edit__page-form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.lbq-edit__page-fields {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px 24px 24px;
}

.lbq-edit__section {
  display: grid;
  gap: 18px;
}

.lbq-edit__section-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  color: #1d2735;
}

@media (max-width: 782px) {
  .lbq-edit__shell {
    flex-direction: column;
    padding: 8px;
  }

  .lbq-edit__page-header {
    padding: 16px;
  }

  .lbq-edit__page-fields {
    padding: 12px 16px 16px;
  }
}

.lbq-datasheet {
  font-size: 0.9rem;
}

.lbq-datasheet__collection+.lbq-datasheet__collection {
  margin-top: 0.9rem;
}

.lbq-datasheet__title {
  margin-top: 0.25rem;
  border-bottom: 1px solid grey;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f2933;
}

.lbq-datasheet__grid {
  display: grid;
  grid-template-columns: 50% auto;
  gap: 0.1rem 0.6rem;
}

.lbq-datasheet__cell--section-title {
  grid-column: 1 / -1;
}

.lbq-datasheet__cell--label {
  font-weight: normal;
}

.lbq-datasheet__cell--value {
  font-weight: 500;
  text-align: right;
}

.lbq-datasheet__section-title {
  margin: 0.35rem 0 0.1rem;
  font-size: 0.8em;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f2933;
}

.lbq-toggle-group {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lbq-toggle-group__label {
  font-size: 12px;
  color: #556170;
  margin: 0;
}

.lbq-toggle-group__options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.lbq-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.2;
  color: #4b5563;
  white-space: nowrap;
}

.lbq-check input {
  margin: 0;
}

.lbq-check__text {
  text-transform: uppercase;
}

.lbq-form {
  margin: 0 0 12px;
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
  display: grid;
  gap: 12px;
}

.lbq-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.lbq-form__grid + .lbq-form__empty {
  margin-top: 12px;
}

.lbq-form__empty {
  margin: 10px 0 0;
  color: #556170;
  font-size: 13px;
  text-align: center;
}

.lbq-form__hint {
  color: #646970;
  font-size: 12px;
}

.lbq-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lbq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.lbq-hr {
  margin: 5px 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

.lbq-entity-card {
  display: block;
  border: 1px solid #d7deea;
  border-radius: 12px;
  background: linear-gradient(165deg, #fff, #f7fafc);
  padding: 14px;
  box-shadow: 0 2px 8px rgba(10, 35, 66, 0.05);
  text-decoration: none;
  color: #1d2735;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.lbq-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lbq-link-row__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.lbq-link-row__title {
  display: block;
}

.lbq-link-row__content .lbq-entity-card__subtitle {
  flex-basis: 100%;
}

.lbq-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.lbq-add-row__action {
  display: grid;
  width: 100%;
  min-height: 56px;
  place-items: center;
  box-sizing: border-box;
  padding: 16px;
  border: 1px dashed #8c8f94;
  border-radius: 10px;
  background: linear-gradient(180deg, #fcfcfc 0%, #f6f7f7 100%);
  color: #1d2327;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease;
}

.lbq-add-row__action:hover,
.lbq-add-row__action:focus-visible {
  border-color: #5c8a66;
  box-shadow: 0 0 0 3px rgba(92, 138, 102, 0.12);
  background: linear-gradient(180deg, #f8fbf8 0%, #edf5ee 100%);
  color: #1d2327;
  outline: none;
}

@media (max-width: 640px) {
}

.lbq-entity-card:not(.lbq-card--editable):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 35, 66, 0.12);
}

.lbq-entity-card--static:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(10, 35, 66, 0.05);
}

.lbq-entity-card__link {
  display: block;
}

.lbq-entity-card__media {
  position: relative;
  margin: -14px -14px 12px;
  overflow: hidden;
  border-radius: 11px 11px 0 0;
  aspect-ratio: 4 / 3;
}

.lbq-entity-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lbq-entity-card__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef0f2;
  color: #9aa5b1;
}

.lbq-entity-card__media--empty .dashicons {
  width: 32px;
  height: 32px;
  font-size: 32px;
}

.lbq-badge--ribbon {
  position: absolute;
  top: 12px;
  right: -30px;
  transform: rotate(40deg);
  min-height: auto;
  padding: 3px 34px;
  border-radius: 0;
  box-shadow: 0 2px 6px rgba(10, 35, 66, 0.25);
}

.lbq-entity-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.lbq-entity-card__head {
  min-width: 0;
}

.lbq-entity-card__name {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.lbq-entity-card__name .dashicons {
  width: 18px;
  height: 18px;
  font-size: 18px;
  color: #44566c;
}

.lbq-entity-card__name-muted {
  color: #6b7788;
  font-weight: 500;
}

.lbq-entity-card__subtitle {
  margin: 3px 0 0;
  font-size: 12px;
  color: #6b7788;
  line-height: 1.3;
}

.lbq-entity-card__meta {
  margin: 0;
  font-size: 13px;
  color: #526071;
  line-height: 1.5;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.lbq-entity-card__label {
  color: #6b7788;
}

.lbq-entity-card__value {
  margin-left: auto;
  text-align: right;
  color: #1f2b3a;
}

.lbq-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.42rem;
  border: 1px solid #ccd5e0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.lbq-pill--status {
  text-transform: uppercase;
  font-weight: 700;
}

.lbq-pill--active {
  border-color: #b8ddc7;
  background: rgba(231, 246, 237, 0.8);
  color: #1f7a43;
}

.lbq-pill--inactive {
  border-color: #e2c1c1;
  background: rgba(251, 236, 236, 0.85);
  color: #9b2c2c;
}

.lbq-empty {
  border: 1px solid #d7deea;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
}

.lbq-message {
  margin: 0;
  border: 1px solid #d7deea;
  border-radius: 12px;
  background: #fff;
  padding: 10px 20px;
  color: #1f2b3a;
}

.lbq-message--success {
  border-color: #b8ddc7;
  background: #f0faf4;
  color: #1f7a43;
}

.lbq-message--warning {
  border-color: #ead8ac;
  background: #fff9eb;
  color: #9a6700;
}

.lbq-message--error {
  border-color: #e2c1c1;
  background: #fdf2f2;
  color: #9b2c2c;
}

.lbq-message--empty {
  color: #556170;
}

.lbq-hint {
  margin: 0;
  color: #2271b1;
  font-size: 12px;
  line-height: 1.4;
}

.lbq-checkbox {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.lbq-dropzone {
  margin-bottom: 10px;
  border: 2px dashed #98a2b3;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.lbq-dropzone:hover,
.lbq-dropzone:focus-visible {
  border-color: #7c8a9c;
  outline: none;
}

.lbq-dropzone--active {
  border-color: #0a4b78;
  background: #eef6ff;
}

.lbq-dropzone--busy {
  opacity: 0.65;
  pointer-events: none;
}

.lbq-dropzone__title {
  margin: 0;
  color: #101828;
  font-weight: 600;
}

.lbq-dropzone__hint {
  margin: 0.35rem 0 0;
  color: #475467;
  font-size: 0.92rem;
}

.lbq-dropzone__message {
  margin: 0.75rem 0 0;
}

.lbq-dropzone__message--success {
  color: #067647;
}

.lbq-dropzone__message--warning {
  color: #b54708;
}

.lbq-dropzone__message--error {
  color: #b42318;
}

.lbq-toast-stack {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 9998;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lbq-toast {
  border: 1px solid #d0d7de;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  line-height: 1.4;
  flex: 0 0 auto;
}

.lbq-toast--success {
  border-color: #16a34a;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.18);
}

.lbq-toast--error {
  border-color: #dc2626;
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.18);
}

.lbq-toast--warning {
  border-color: #d97706;
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.18);
}

.lbq-toast--info {
  border-color: #2563eb;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.lbq-toast__message {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}

.lbq-toast__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #334155;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0 2px;
}

.lbq-toast__close:hover,
.lbq-toast__close:focus-visible {
  color: #0f172a;
  outline: none;
}

.lbq-card-2x2 {
  border: 1px solid #d7deea;
  border-radius: 12px;
  background: linear-gradient(165deg, #fff, #f7fafc);
  padding: 14px;
  box-shadow: 0 2px 8px rgba(10, 35, 66, 0.05);
}

.lbq-card-2x2__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title metric"
    "subtitle actions";
  gap: 6px 12px;
  align-items: center;
}

.lbq-card-2x2__title {
  grid-area: title;
  margin: 0;
}

.lbq-card-2x2__subtitle {
  grid-area: subtitle;
  margin: 0;
  color: #6b7788;
  font-size: 13px;
  white-space: pre-wrap;
}

.lbq-card-2x2__metric {
  grid-area: metric;
  justify-self: end;
  white-space: nowrap;
}

.lbq-card-2x2__actions {
  grid-area: actions;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.lbq-card-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lbq-inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lbq-inline-actions form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.lbq-inline-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #005bc5;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.lbq-inline-actions__btn:hover {
  background: transparent;
  color: #004799;
  text-decoration: underline;
}

.lbq-inline-actions__btn:focus-visible {
  outline: 2px solid #005bc5;
  outline-offset: 2px;
}

.lbq-action-link {
  display: inline-flex;
  align-items: center;
  color: #005bc5;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.lbq-action-link:hover {
  color: #004799;
  text-decoration: underline;
}

.lbq-action-link:focus-visible {
  outline: 2px solid #005bc5;
  outline-offset: 2px;
}

.lbq-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #0b57d0;
  border-radius: 0.25rem;
  background: #0b57d0;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  transition:
    color .15s ease-in-out,
    background-color .15s ease-in-out,
    border-color .15s ease-in-out,
    box-shadow .15s ease-in-out;
}

.lbq-button--icon-only {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.lbq-button--icon-only svg {
  display: block;
  width: 16px;
  height: 16px;
}

.lbq-button:hover {
  background: #0046ad;
  border-color: #0046ad;
  color: #ffffff;
  text-decoration: none;
}

.lbq-button--ghost {
  background: transparent;
  border-color: transparent;
  color: #0b57d0;
}

.lbq-button--ghost:hover {
  background: rgba(11, 87, 208, 0.08);
  border-color: transparent;
  color: #0046ad;
}

.lbq-button--danger {
  background: transparent;
  border-color: transparent;
  color: #c5221f;
}

.lbq-button--danger:hover {
  background: rgba(197, 34, 31, 0.08);
  border-color: transparent;
  color: #a3201d;
}

.lbq-button--danger:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(197, 34, 31, 0.25);
}

.lbq-button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(11, 87, 208, 0.25);
}

.lbq-button:disabled,
.lbq-button[disabled] {
  opacity: .65;
  pointer-events: none;
}

.lbq-action-menu {
  position: relative;
  display: inline-flex;
}

.lbq-action-menu__panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  padding: 6px;
  gap: 2px;
  background: #ffffff;
  border: 1px solid #d7deea;
  border-radius: 0.375rem;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.16);
}

.lbq-action-menu__panel[hidden] {
  display: none;
}

.lbq-action-menu .lbq-action-menu__item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: #1d2327;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.lbq-action-menu .lbq-action-menu__item:hover,
.lbq-action-menu .lbq-action-menu__item:focus-visible {
  background: #eef2f8;
  color: #1d2327;
  outline: 0;
}

.lbq-action-menu .lbq-action-menu__item--danger {
  color: #c5221f;
}

.lbq-action-menu .lbq-action-menu__item--danger:hover,
.lbq-action-menu .lbq-action-menu__item--danger:focus-visible {
  background: rgba(197, 34, 31, 0.08);
  color: #c5221f;
}

.lbq-action-menu__item:disabled,
.lbq-action-menu__item[disabled] {
  opacity: .5;
  pointer-events: none;
}

.lbq-tabs {
  margin-top: 14px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.lbq-tabs__nav {
  flex: 0 0 auto;
  display: flex;
  gap: 4px;
  align-items: flex-end;
  border-bottom: 1px solid #c3c4c7;
  padding: 0;
  margin: 0;
  overflow-x: auto;
}

.lbq-tabs__btn {
  appearance: none;
  border: 1px solid #c3c4c7;
  border-bottom: 0;
  background: #dcdcde;
  color: #50575e;
  border-radius: 0;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  margin: 0;
}

.lbq-tabs__btn:hover {
  background: #fff;
  color: #3c434a;
}

.lbq-tabs__btn[aria-selected="true"] {
  background: #f0f0f1;
  color: #000;
  box-shadow: 0 1px 0 #f0f0f1;
}

.lbq-tabs__btn:focus-visible {
  outline: 2px solid #2271b1;
  outline-offset: -2px;
}

.lbq-tabs__panel {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 12px 0 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.lbq-section {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.lbq-section__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.lbq-print {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--lbq-print-text, #111);
  --lbq-print-content-inset: 5px;
}

.lbq-print__page {
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.25;
  max-width: 190mm;
  margin: 2mm auto;
}

.lbq-print-template {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.lbq-print-template thead {
  display: table-header-group;
}

.lbq-print-template tbody {
  display: table-row-group;
}

.lbq-print-template__zone {
  min-width: 0;
  white-space: pre-line;
  vertical-align: top;
  padding-bottom: 3px;
}

.lbq-print-template__body-cell {
  padding: 0;
  vertical-align: top;
}

.lbq-print-template__body {
  min-width: 0;
}

.lbq-print-template__logo {
  max-width: 100%;
  max-height: 20mm;
  height: auto;
}

.lbq-print h1,
.lbq-print h2,
.lbq-print h3,
.lbq-print h4 {
  margin: 0;
  padding-top: 10px;
  padding-bottom: 5px;
  line-height: 1.25;
}

.lbq-print h1 {
  font-size: 20px;
}

.lbq-print h2 {
  font-size: 16px;
}

.lbq-print h3 {
  font-size: 14px;
}

.lbq-print h4 {
  font-size: 12px;
}

.lbq-print p {
  margin: 0;
  padding: 2px 0;
}

.lbq-print .lbq-print-box {
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid var(--lbq-print-border, #d0d3d8);
  padding: var(--lbq-print-content-inset);
}

.lbq-print-section {
  break-inside: avoid;
  page-break-inside: avoid;
}

.lbq-print-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-top: 3px;
  margin-bottom: 3px;
}

.lbq-print-table th,
.lbq-print-table td {
  padding: var(--lbq-print-content-inset, 5px);
}

.lbq-print-table tr {
  break-inside: avoid;
  page-break-inside: avoid;
}

.lbq-u-align-center {
  vertical-align: middle;
}

.lbq-u-align-top {
  vertical-align: top;
}

.lbq-print-table--grid {
  border: 1px solid var(--lbq-print-border, #d0d3d8);
}

.lbq-print-table--grid th,
.lbq-print-table--grid td {
  border: 1px solid var(--lbq-print-border, #d0d3d8);
}

.lbq-print-table--grid tfoot td {
  border: 0;
}

.lbq-print-table--minimal thead th {
  border-bottom: 1px solid var(--lbq-print-border, #d0d3d8);
}

.lbq-print-table--minimal,
.lbq-print-table--grid {
  margin-top: 2px;
  margin-bottom: 2px;
}

.lbq-print-table--minimal th,
.lbq-print-table--minimal td,
.lbq-print-table--grid th,
.lbq-print-table--grid td {
  padding: 2px 4px;
}

.lbq-print-table--minimal h1,
.lbq-print-table--minimal h2,
.lbq-print-table--minimal h3,
.lbq-print-table--minimal h4,
.lbq-print-table--grid h1,
.lbq-print-table--grid h2,
.lbq-print-table--grid h3,
.lbq-print-table--grid h4 {
  padding: 3px 0 2px;
  line-height: 1.15;
}

.lbq-print-table--minimal p,
.lbq-print-table--grid p {
  padding: 1px 0;
}

.lbq-print-table--minimal ul,
.lbq-print-table--minimal ol,
.lbq-print-table--grid ul,
.lbq-print-table--grid ol {
  margin-top: 2px;
  margin-bottom: 2px;
}

.lbq-print-table--minimal tfoot td {
  border-top: 1px solid var(--lbq-print-border, #d0d3d8);
}

.lbq-print ul,
.lbq-print ol {
  border-collapse: collapse;
  margin-top: 3px;
  margin-bottom: 3px;
}

@media (max-width: 640px) {
  .lbq-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .lbq-toolbar__right {
    margin-left: 0;
    width: 100%;
  }

  .lbq-actions {
    width: 100%;
  }

  .lbq-actions .button {
    flex: 1 1 auto;
    text-align: center;
  }

  .lbq-filters__row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .lbq-field {
    min-width: 100%;
  }

  .lbq-field--inline {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .lbq-edit__field.lbq-field--inline {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .lbq-edit__field > span {
    margin-top: 0;
  }

  .lbq-summary-field {
    align-items: stretch;
    flex-direction: column;
  }

  .lbq-summary-field__actions {
    width: 100%;
  }

  .lbq-datasheet__grid {
    grid-template-columns: 1fr;
  }

  .lbq-tabs__btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .lbq-card-2x2__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "subtitle"
      "metric"
      "actions";
    gap: 8px;
  }

  .lbq-card-2x2__metric,
  .lbq-card-2x2__actions {
    justify-self: start;
  }

  .lbq-inline-actions {
    gap: 8px;
  }

  .lbq-toast-stack {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
}

/* Overlay principal */
.lbq-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;
}

.lbq-modal[hidden] {
  display: none;
}

/* Fond noir transparent */
.lbq-modal__backdrop {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

/* Fenêtre */
.lbq-modal__dialog {
  position: relative;
  z-index: 1;

  width: min(1000px, 95vw);
  max-height: 90vh;

  overflow: auto;

  background: #ffffff;
  border-radius: 14px;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, .2),
    0 2px 10px rgba(0, 0, 0, .08);
}

/* Optional dialog variants */
.lbq-modal__dialog--split {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lbq-modal__dialog--md {
  width: min(760px, calc(100vw - 2rem));
}

/* Contenu interne */
.lbq-modal__content {
  padding: 24px;
}

/* Optional split layout: fixed header + scrollable body */
.lbq-modal__content--split {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.lbq-modal__dialog--split .lbq-modal__content--split {
  flex: 1 1 auto;
  min-height: 0;
}

.lbq-modal__header {
  flex: 0 0 auto;
  padding: 24px 24px 16px;
  border-bottom: 1px solid #dcdcde;
}

.lbq-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 24px 24px;
}

/* Empêche le scroll body quand modal ouverte */
body.lbq-modal-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {

  .lbq-modal {
    padding: 12px;
    align-items: flex-start;
  }

  .lbq-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    margin-top: 12px;
    border-radius: 10px;
  }

  .lbq-modal__content {
    padding: 16px;
  }

  .lbq-modal__header {
    padding: 16px 16px 12px;
  }

  .lbq-modal__body {
    padding: 12px 16px 16px;
  }
}

@media print {
  .lbq-button {
    display: none;
  }
}

/* App shell — coquille front commune (lbq_header()/lbq_footer()), verrouillee viewport */
:root {
  --lbq-app-bar-height: 44px;
  --lbq-app-content-width: 1200px;
}

body.lbq-app {
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
}

body.lbq-form-page {
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: #eef2f7;
}

.lbq-app-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lbq-app-bar {
  z-index: 100;
  flex: 0 0 var(--lbq-app-bar-height);
  height: var(--lbq-app-bar-height);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
  background: #101828;
  color: #fff;
}

.lbq-app-bar__logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.lbq-app-bar__logo-img {
  display: block;
  height: 32px;
  width: auto;
}

.lbq-app-bar__admin-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.lbq-app-bar__admin-link:hover {
  color: #fff;
}

.lbq-app-bar__admin-link .dashicons {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

.lbq-app-bar__site-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
  color: #fff;
  text-decoration: none;
}

.lbq-app-bar__site-icon {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.lbq-app-bar__site-name {
  max-width: 180px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lbq-app-bar__nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  height: 100%;
  overflow-x: auto;
}

.lbq-app-bar__burger {
  display: none;
}

.lbq-app-bar__link {
  padding: 6px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.lbq-app-bar__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.lbq-app-bar__link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 600;
}

.lbq-app-content {
  flex: 1 1 auto;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.lbq-form-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lbq-form-shell__bar {
  flex: 0 0 var(--lbq-app-bar-height);
  height: var(--lbq-app-bar-height);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: #101828;
  color: #fff;
}

.lbq-form-shell__brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.lbq-form-shell__logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
}

.lbq-form-shell__logo-img {
  display: block;
  height: 32px;
  width: auto;
}

.lbq-form-shell__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.lbq-form-shell__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lbq-form-shell__actions .lbq-button {
  min-height: 34px;
}

.lbq-form-shell__actions .lbq-button--ghost {
  color: rgba(255, 255, 255, 0.9);
}

.lbq-form-shell__actions .lbq-button--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.lbq-form-shell__content {
  flex: 1 1 auto;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.lco-app-content {
  height: 100%;
  box-sizing: border-box;
  overflow: auto;
}

@media (max-width: 720px) {
  .lbq-app-bar {
    position: relative;
  }

  .lbq-app-bar__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    flex: 0 0 auto;
    margin-left: auto;
    width: 40px;
    height: 40px;
    padding: 9px;
    box-sizing: border-box;
    cursor: pointer;
  }

  .lbq-app-bar__burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
  }

  .lbq-app-bar__nav {
    display: none;
    position: absolute;
    top: var(--lbq-app-bar-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    max-height: calc(100dvh - var(--lbq-app-bar-height));
    overflow-y: auto;
    padding: 6px;
    background: #101828;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  }

  .lbq-app-bar__nav-toggle:checked ~ .lbq-app-bar__nav {
    display: flex;
  }

  .lbq-app-bar__link {
    border-radius: 6px;
  }

  .lbq-form-shell__bar {
    flex: 0 0 auto;
    height: auto;
    min-height: var(--lbq-app-bar-height);
    padding-top: 10px;
    padding-bottom: 10px;
    flex-wrap: wrap;
  }

  .lbq-form-shell__brand {
    width: 100%;
  }

  .lbq-form-shell__title {
    white-space: normal;
  }

  .lbq-form-shell__actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}
