:root {
  --les-wine: #6c2f3f;
  --les-pink: var(--les-wine);
  --les-ink: #1b1917;
  --les-paper: #f1eee7;
  --les-white: #ffffff;
  --les-line: #d9d7d0;
  --les-muted: #706c67;
  --les-olive: #77734f;
  --les-walnut: #785c49;
  --les-serif: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  --les-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body.les-standalone {
  margin: 0;
  overflow: hidden;
  background: var(--les-paper);
}

.toplevel_page_la-esencia-studio #wpcontent {
  padding-left: 0;
}

.toplevel_page_la-esencia-studio #wpbody-content {
  padding-bottom: 0;
}

.toplevel_page_la-esencia-studio #wpfooter,
.toplevel_page_la-esencia-studio .notice,
.toplevel_page_la-esencia-studio .update-nag {
  display: none !important;
}

.les-app-root,
.les-app-root * {
  box-sizing: border-box;
}

.les-app-root {
  width: 100%;
  height: calc(100vh - 32px);
  min-height: 640px;
  overflow: hidden;
  color: var(--les-ink);
  background: var(--les-paper);
  font-family: var(--les-sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.les-standalone .les-app-root {
  height: 100vh;
}

.les-app-root button,
.les-app-root input,
.les-app-root select,
.les-app-root textarea {
  margin: 0;
  border-radius: 0;
  font: inherit;
}

.les-app-root button {
  cursor: pointer;
}

.les-app-root button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.les-app-root button:focus-visible,
.les-app-root a:focus-visible,
.les-app-root input:focus-visible,
.les-app-root select:focus-visible,
.les-app-root textarea:focus-visible,
.les-app-root [role="button"]:focus-visible {
  outline: 2px solid var(--les-pink);
  outline-offset: 3px;
}

.les-app-root a {
  color: inherit;
  text-decoration: none;
}

.les-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.les-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.les-initial-loading {
  display: flex;
  height: 100%;
  align-items: baseline;
  justify-content: center;
  gap: 0.55rem;
  padding-top: 42vh;
  background: var(--les-ink);
  color: #fff;
}

.les-initial-loading span {
  font-family: var(--les-serif);
  font-size: 1.7rem;
  font-style: italic;
}

.les-initial-loading strong {
  font-size: 1.45rem;
  letter-spacing: 0.24rem;
}

.les-wordmark {
  display: inline-block;
  color: inherit;
  font-family: Montserrat, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.les-wordmark strong {
  font: inherit;
  font-weight: 750;
  letter-spacing: -0.045em;
}

.les-initial-loading .les-wordmark,
.les-initial-loading .les-wordmark span,
.les-initial-loading .les-wordmark strong {
  font-family: Montserrat, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  font-style: normal;
  letter-spacing: -0.04em;
}

.les-initial-loading i {
  width: 6px;
  height: 6px;
  margin-left: 0.45rem;
  border-radius: 50%;
  background: var(--les-pink);
  animation: lesPulse 1s infinite alternate;
}

@keyframes lesPulse {
  to { opacity: 0.25; transform: scale(0.7); }
}

.les-shell {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: 280px minmax(0, 1fr);
}

.les-sidebar {
  position: relative;
  z-index: 40;
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--les-ink);
  color: #fff;
}

.les-sidebar::after {
  position: absolute;
  right: -55px;
  bottom: 132px;
  color: rgba(255, 255, 255, 0.055);
  content: "INTERIOR STUDIO";
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.48rem;
  transform: rotate(-90deg);
  pointer-events: none;
}

.les-brand {
  flex: 0 0 auto;
  padding: 2.25rem 1.75rem 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.les-wordmark-sidebar { font-size: 1.03rem; }

.les-brand p {
  margin: 0.92rem 0 0;
  color: var(--les-pink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.21rem;
  text-transform: uppercase;
}

.les-sidebar-scroll {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #393633 transparent;
}

.les-sidebar-label {
  margin: 1.65rem 1.7rem 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.69rem;
  font-weight: 650;
  letter-spacing: 0.22rem;
  text-transform: uppercase;
}

.les-project-row {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 76px;
  grid-template-columns: 2rem minmax(0, 1fr) 18px;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.35rem 1rem 1.7rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  text-align: left;
}

.les-project-row::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: transparent;
  content: "";
}

.les-project-row:hover,
.les-project-row.is-active {
  background: #1b1918;
  color: #fff;
}

.les-project-row.is-active::before {
  background: var(--les-pink);
}

.les-project-index {
  color: var(--les-pink);
  font-family: var(--les-serif);
  font-size: 0.91rem;
  font-style: italic;
}

.les-project-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.28rem;
}

.les-project-copy strong {
  overflow: hidden;
  font-family: var(--les-serif);
  font-size: 1.06rem;
  font-weight: 400;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.les-project-copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.les-project-row .les-icon {
  width: 15px;
  opacity: 0;
  transition: 160ms ease;
}

.les-project-row:hover .les-icon,
.les-project-row.is-active .les-icon {
  opacity: 0.72;
  transform: translateX(2px);
}

.les-new-project {
  display: flex;
  width: calc(100% - 3.4rem);
  align-items: center;
  gap: 0.7rem;
  margin: 0.85rem 1.7rem 1.4rem;
  padding: 1rem 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.les-new-project .les-icon {
  color: var(--les-pink);
}

.les-new-project:hover {
  color: #fff;
}

.les-sidebar-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 1rem;
  padding: 1.35rem 1.7rem 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--les-ink);
}

.les-signature {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.les-signature em {
  font-family: var(--les-serif);
  font-size: 1.16rem;
}

.les-signature span,
.les-save-indicator,
.les-wp-link,
.les-access-link {
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.09rem;
  text-transform: uppercase;
}

.les-save-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.les-save-indicator i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #77736f;
}

.les-save-indicator.is-saved i { background: #a9ba77; }
.les-save-indicator.is-saving i,
.les-save-indicator.is-loading i { background: #d7b45d; }
.les-save-indicator.is-offline i { background: var(--les-pink); }

.les-wp-link {
  width: fit-content;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.les-wp-link:hover { color: #fff; }

.les-access-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.48rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.les-access-link .les-icon { width: 15px; height: 15px; color: #a9938e; }
.les-access-link:hover { color: #fff; }

.les-sidebar-backdrop {
  display: none;
}

.les-main {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 5%, rgba(108, 47, 63, 0.075), transparent 31rem),
    var(--les-paper);
}

.les-header {
  display: grid;
  min-height: 116px;
  flex: 0 0 auto;
  grid-template-columns: minmax(230px, 1fr) auto auto;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: center;
  padding: 1.3rem clamp(1.3rem, 3vw, 3.2rem);
  border-bottom: 1px solid #d6d3cb;
  background: rgba(244, 243, 239, 0.93);
  backdrop-filter: blur(18px);
}

.les-header-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.85rem;
}

.les-eyebrow {
  margin: 0 0 0.28rem;
  color: var(--les-pink);
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.22rem;
  text-transform: uppercase;
}

.les-header h1 {
  overflow: hidden;
  margin: 0;
  font-family: var(--les-serif);
  font-size: clamp(1.65rem, 2.5vw, 2.45rem);
  font-weight: 400;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.les-header h1 span,
.les-page-intro h2 span,
.les-modal-heading h2 span {
  color: var(--les-pink);
}

.les-mobile-menu {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c7c4bb;
  background: transparent;
  color: var(--les-ink);
}

.les-header-meta {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.35rem);
}

.les-header-meta button {
  display: flex;
  min-width: 110px;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.les-header-meta span {
  color: #8a8580;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13rem;
  text-transform: uppercase;
}

.les-header-meta strong {
  max-width: 150px;
  overflow: hidden;
  font-family: var(--les-serif);
  font-size: 1rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.les-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.les-button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  padding: 0.73rem 1rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--les-ink);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.055rem;
  text-transform: uppercase;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.les-button-outline {
  border-color: #c8c4bb;
}

.les-button-outline:hover,
.les-button-ghost:hover {
  border-color: var(--les-ink);
  background: #fff;
}

.les-button-primary,
.les-add-piece {
  border-color: var(--les-pink);
  background: var(--les-pink);
  color: #fff;
}

.les-button-primary:hover,
.les-add-piece:hover {
  border-color: #51232f;
  background: #51232f;
}

.les-button-dark {
  background: var(--les-ink);
  color: #fff;
}

.les-button-dark:hover { background: #2b2825; }

.les-button-ghost {
  border-color: transparent;
  color: #6f6965;
}

.les-tabs-bar {
  display: flex;
  min-height: 68px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1.3rem, 3vw, 3.2rem);
  border-bottom: 1px solid #d6d3cb;
  background: #ebe9e3;
}

.les-tabs {
  display: flex;
  align-self: stretch;
}

.les-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 1.25rem;
  border: 0;
  background: transparent;
  color: #746f69;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.045rem;
  text-transform: uppercase;
}

.les-tabs button:first-child { padding-left: 0; }

.les-tabs button::after {
  position: absolute;
  right: 1.25rem;
  bottom: -1px;
  left: 1.25rem;
  height: 3px;
  background: transparent;
  content: "";
}

.les-tabs button:first-child::after { left: 0; }

.les-tabs button.is-active {
  color: var(--les-ink);
}

.les-tabs button.is-active::after {
  background: var(--les-pink);
}

.les-tabs button > span:last-child:not(.les-icon) {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  margin-left: 0.1rem;
  border-radius: 50%;
  background: var(--les-ink);
  color: #fff;
  font-size: 0.65rem;
}

.les-add-piece {
  min-height: 40px;
  padding-inline: 1.1rem;
  border: 0;
}

.les-tab-content {
  min-width: 0;
  min-height: 0;
  flex: 1;
  overflow: auto;
}

.les-editor-layout {
  display: grid;
  min-width: 0;
  min-height: 100%;
  grid-template-columns: minmax(0, 1fr) 338px;
}

.les-canvas-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(1rem, 2vw, 2rem);
}

.les-canvas-toolbar {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.les-background-toggle {
  display: inline-flex;
  padding: 3px;
  background: #e1dfd8;
}

.les-background-toggle button {
  min-height: 34px;
  padding: 0.45rem 0.9rem;
  border: 0;
  background: transparent;
  color: #746f69;
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.07rem;
  text-transform: uppercase;
}

.les-background-toggle button.is-active {
  background: #fff;
  color: var(--les-ink);
  box-shadow: 0 1px 4px rgba(17, 16, 15, 0.09);
}

.les-upload-room {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.75rem;
  border: 1px solid #ccc8bf;
  color: #625e59;
  cursor: pointer;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
}

.les-upload-room input,
.les-upload-image input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.les-history-tools,
.les-selection-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}

.les-history-tools {
  margin-left: auto;
}

.les-history-tools button,
.les-selection-tools button {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #d0ccc4;
  background: #fff;
  color: #625d58;
}

.les-history-tools button:hover,
.les-selection-tools button:hover {
  border-color: var(--les-ink);
  color: var(--les-ink);
}

.les-selection-tools button.is-danger:hover {
  border-color: var(--les-pink);
  color: var(--les-pink);
}

.les-canvas-hint {
  margin: 0 0 0 0.45rem;
  color: #8b8580;
  font-family: var(--les-serif);
  font-size: 0.9rem;
  font-style: italic;
}

.les-moodboard-canvas {
  position: relative;
  width: 100%;
  min-height: 470px;
  flex: 1;
  overflow: hidden;
  border: 1px solid #cbc7be;
  background: #e7e1d7;
  box-shadow: 0 15px 50px rgba(17, 16, 15, 0.08);
  isolation: isolate;
  touch-action: none;
}

.les-moodboard-canvas.is-paper {
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(17, 16, 15, 0.035) 50%, transparent 50.1%),
    linear-gradient(rgba(17, 16, 15, 0.018) 1px, transparent 1px),
    #f7f4ed;
  background-size: 100% 100%, 100% 28px, 100% 100%;
}

.les-room-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(0.96);
  pointer-events: none;
  user-select: none;
}

.les-moodboard-canvas.is-room::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(17, 16, 15, 0.12), transparent 35%, rgba(244, 243, 239, 0.04));
  content: "";
  pointer-events: none;
}

.les-canvas-brand {
  position: absolute;
  top: 4.5%;
  right: 4.5%;
  z-index: 6;
  padding: 0.58rem 0.68rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.les-wordmark-canvas { font-size: clamp(0.58rem, 1.1vw, 0.86rem); }

.les-paper-heading {
  position: absolute;
  top: 8%;
  left: 7%;
  z-index: 0;
  display: flex;
  max-width: 42%;
  flex-direction: column;
}

.les-paper-heading span {
  color: var(--les-pink);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.18rem;
}

.les-paper-heading strong {
  margin-top: 0.65rem;
  font-family: var(--les-serif);
  font-size: clamp(1.7rem, 3.4vw, 3.6rem);
  font-weight: 400;
  line-height: 0.95;
}

.les-paper-heading em {
  margin-top: 0.7rem;
  color: #7c766f;
  font-family: var(--les-serif);
  font-size: 0.92rem;
}

.les-canvas-caption {
  position: absolute;
  right: 5%;
  bottom: 5%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.les-canvas-caption span {
  color: var(--les-pink);
  font-size: 0.59rem;
  font-weight: 750;
  letter-spacing: 0.13rem;
  text-transform: uppercase;
}

.les-canvas-caption strong {
  font-family: var(--les-serif);
  font-size: 0.96rem;
  font-weight: 400;
}

.les-palette {
  position: absolute;
  bottom: 5%;
  left: 5%;
  z-index: 3;
  display: flex;
  gap: 5px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.84);
  pointer-events: none;
}

.les-palette i {
  width: 18px;
  height: 18px;
}

.les-board-item {
  position: absolute;
  z-index: 2;
  display: block;
  min-width: 42px;
  cursor: grab;
  transform-origin: center;
  touch-action: none;
  user-select: none;
}

.les-board-item:active { cursor: grabbing; }

.les-board-item::after {
  position: absolute;
  inset: -7px;
  border: 1px solid transparent;
  content: "";
  pointer-events: none;
}

.les-board-item.is-selected::after {
  border-color: var(--les-pink);
}

.les-board-product {
  display: block;
  width: 100%;
}

.les-board-product img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 330px;
  object-fit: contain;
  filter: drop-shadow(0 15px 18px rgba(17, 16, 15, 0.18));
  pointer-events: none;
}

.les-resize-handle {
  position: absolute;
  right: -13px;
  bottom: -13px;
  z-index: 4;
  display: none;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50% !important;
  background: var(--les-pink);
  box-shadow: 0 2px 9px rgba(17, 16, 15, 0.28);
  touch-action: none;
}

.les-board-item.is-selected .les-resize-handle { display: block; }

.les-canvas-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 245px;
  flex-direction: column;
  align-items: center;
  padding: 2.1rem;
  border: 1px dashed #aaa49b;
  background: rgba(255, 255, 255, 0.58);
  color: var(--les-ink);
  transform: translate(-50%, -50%);
}

.les-canvas-empty .les-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 0.8rem;
  color: var(--les-pink);
}

.les-canvas-empty strong {
  font-family: var(--les-serif);
  font-size: 1.2rem;
  font-weight: 400;
}

.les-canvas-empty span {
  margin-top: 0.35rem;
  color: var(--les-muted);
  font-size: 0.78rem;
}

.les-pieces-panel {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border-left: 1px solid #d5d2ca;
  background: #efede7;
}

.les-pieces-heading {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.55rem 1.4rem 1.15rem;
  border-bottom: 1px solid #d5d2ca;
}

.les-pieces-heading h2 {
  margin: 0;
  font-family: var(--les-serif);
  font-size: 1.52rem;
  font-weight: 400;
}

.les-pieces-heading h2 em {
  color: var(--les-pink);
  font-weight: 400;
}

.les-pieces-heading > span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c8c4ba;
  border-radius: 50%;
  font-family: var(--les-serif);
  font-size: 0.92rem;
}

.les-product-stack {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  scrollbar-width: thin;
  scrollbar-color: #bbb5ad transparent;
}

.les-product-card {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  margin-bottom: 0.65rem;
  border: 1px solid #d4d0c8;
  background: #fff;
  transition: border-color 150ms ease, transform 150ms ease;
}

.les-product-card:hover {
  border-color: #aaa49c;
  transform: translateY(-1px);
}

.les-product-card.is-discarded { opacity: 0.48; }

.les-product-visual {
  position: relative;
  display: flex;
  min-height: 106px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.7rem;
  border: 0;
  border-right: 1px solid #e3e0da;
  background: #f5f3ee;
}

.les-product-visual .les-product-image,
.les-selection-image .les-product-image,
.les-import-preview .les-product-image {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.les-product-visual img {
  display: block;
  width: 100%;
  height: 82px;
  object-fit: contain;
}

.les-place-product {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.38rem;
  background: var(--les-ink);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform 150ms ease;
}

.les-product-visual:hover .les-place-product,
.les-product-visual:focus-visible .les-place-product {
  transform: translateY(0);
}

.les-place-product .les-icon { width: 13px; height: 13px; }

.les-instance-count {
  position: absolute;
  top: 7px;
  right: 7px;
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--les-pink);
  color: #fff;
  font-size: 0.64rem;
  font-style: normal;
}

.les-product-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.9rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.les-product-card-copy span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.les-product-card-copy strong {
  overflow: hidden;
  font-family: var(--les-serif);
  font-size: 1rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.les-product-card-copy small {
  display: -webkit-box;
  margin-top: 0.22rem;
  overflow: hidden;
  color: #8a8580;
  font-size: 0.67rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.les-product-card-copy em {
  margin-top: 0.5rem;
  color: var(--les-pink);
  font-family: var(--les-serif);
  font-size: 0.96rem;
  font-style: normal;
}

.les-products-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
  color: #8a8580;
  text-align: center;
}

.les-products-empty .les-icon { width: 32px; height: 32px; color: var(--les-pink); }
.les-products-empty p { max-width: 190px; font-family: var(--les-serif); font-size: 0.95rem; }

.les-panel-add {
  display: flex;
  min-height: 54px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem;
  border: 0;
  border-top: 1px solid #d5d2ca;
  background: transparent;
  color: var(--les-ink);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.065rem;
  text-transform: uppercase;
}

.les-panel-add:hover { background: #fff; }
.les-panel-add .les-icon { color: var(--les-pink); }

.les-image-empty {
  color: #b0aaa2;
}

.les-image-empty .les-icon {
  width: 28px;
  height: 28px;
}

.les-product-image {
  position: relative;
}

.les-image-working {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--les-pink);
  animation: lesPulse 0.8s infinite alternate;
}

.les-product-image.is-processed .les-image-working { display: none; }
.les-image-working .les-icon { width: 14px; height: 14px; }

.les-content-page {
  min-height: 100%;
  padding: clamp(1.5rem, 3.3vw, 3.5rem);
}

.les-page-intro {
  max-width: 590px;
}

.les-page-intro h2 {
  margin: 0;
  font-family: var(--les-serif);
  font-size: clamp(2.25rem, 4.5vw, 4.7rem);
  font-weight: 400;
  line-height: 0.95;
}

.les-page-intro > p:last-child {
  max-width: 460px;
  margin: 0.85rem 0 0;
  color: #716c66;
  font-family: var(--les-serif);
  font-size: 1.05rem;
}

.les-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.7rem;
  border: 1px solid #d3cfc7;
  background: #d3cfc7;
}

.les-selection-card {
  position: relative;
  display: grid;
  min-height: 240px;
  grid-template-columns: minmax(130px, 37%) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  background: #fff;
}

.les-selection-card.is-discarded { opacity: 0.48; }

.les-selection-number {
  position: absolute;
  top: 0.85rem;
  left: 0.9rem;
  z-index: 2;
  color: var(--les-pink);
  font-family: var(--les-serif);
  font-size: 0.8rem;
  font-style: italic;
}

.les-selection-image {
  display: flex;
  min-height: 190px;
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  padding: 1.7rem;
  background: #f0eee9;
}

.les-selection-image img {
  display: block;
  width: 100%;
  height: 165px;
  object-fit: contain;
}

.les-selection-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.45rem 1.4rem 0.85rem;
}

.les-selection-copy p {
  margin: 0;
  color: var(--les-pink);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.11rem;
  text-transform: uppercase;
}

.les-selection-copy h3 {
  margin: 0.4rem 0 0;
  font-family: var(--les-serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.05;
}

.les-selection-copy > span {
  margin-top: 0.45rem;
  color: #7b766f;
  font-size: 0.73rem;
}

.les-selection-copy > strong {
  margin-top: auto;
  padding-top: 0.7rem;
  font-family: var(--les-serif);
  font-size: 1.18rem;
  font-weight: 400;
}

.les-selection-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: end;
  padding: 0.7rem 1.1rem 1.05rem;
}

.les-selection-actions > label:first-child {
  grid-column: 1 / -1;
}

.les-selection-actions label > span:first-child {
  display: block;
  margin-bottom: 0.25rem;
  color: #8a8580;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.07rem;
  text-transform: uppercase;
}

.les-selection-actions select {
  width: 100%;
  min-height: 37px;
  padding: 0.4rem 1.8rem 0.4rem 0.6rem;
  border: 1px solid #d1cdc5;
  background: #fff;
  color: var(--les-ink);
  font-size: 0.75rem;
}

.les-inline-switch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #6e6963;
  font-size: 0.7rem;
}

.les-inline-switch > span { margin: 0 !important; }
.les-inline-switch input { accent-color: var(--les-pink); }

.les-card-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.25rem;
}

.les-card-buttons button,
.les-card-buttons a {
  display: inline-flex;
  width: 35px;
  height: 35px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #d1cdc5;
  background: #fff;
  color: #68635d;
}

.les-card-buttons .les-icon { width: 15px; height: 15px; }
.les-card-buttons button:hover,
.les-card-buttons a:hover { border-color: var(--les-ink); color: var(--les-ink); }
.les-card-buttons .is-danger:hover { border-color: var(--les-pink); color: var(--les-pink); }

.les-page-empty {
  grid-column: 1 / -1;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: #fff;
  font-family: var(--les-serif);
}

.les-page-empty button {
  border: 0;
  border-bottom: 1px solid var(--les-pink);
  background: transparent;
  color: var(--les-pink);
}

.les-purchases-page { max-width: 1540px; }

.les-purchases-topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.les-project-purchase-total {
  display: flex;
  width: min(355px, 100%);
  min-height: 145px;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  padding: 1.45rem 1.6rem;
  border-top: 4px solid var(--les-pink);
  background: var(--les-ink);
  color: #fff;
}

.les-project-purchase-total span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.63rem;
  font-weight: 750;
  letter-spacing: 0.08rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.les-project-purchase-total strong {
  margin-top: 0.28rem;
  font-family: var(--les-serif);
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.les-project-purchase-total em {
  margin-top: 0.52rem;
  color: #c7bdb7;
  font-family: var(--les-serif);
  font-size: 0.78rem;
  font-style: italic;
}

.les-store-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 0.7rem;
  margin-top: 2.1rem;
}

.les-store-total {
  display: flex;
  min-width: 0;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #d0ccc4;
  border-top: 3px solid var(--les-pink);
  background: #fff;
}

.les-store-total > div { display: flex; min-width: 0; align-items: center; gap: 0.7rem; }
.les-store-total .les-icon { width: 19px; height: 19px; flex: 0 0 auto; color: var(--les-pink); }
.les-store-total div > span { display: flex; min-width: 0; flex-direction: column; }
.les-store-total strong { overflow: hidden; font-family: var(--les-serif); font-size: 1rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.les-store-total small { color: #89837c; font-size: 0.62rem; }
.les-store-total > em { flex: 0 0 auto; color: var(--les-ink); font-family: var(--les-serif); font-size: 1.15rem; font-style: normal; }
.les-purchase-empty-store { grid-column: 1 / -1; padding: 1.2rem; border: 1px dashed #c4bfb7; color: #7d7770; font-family: var(--les-serif); font-style: italic; }

.les-purchases-table-wrap {
  margin-top: 1.25rem;
  overflow-x: auto;
  border: 1px solid #d0ccc4;
  background: #fff;
}

.les-purchases-table-wrap table {
  width: 100%;
  min-width: 930px;
  border-collapse: collapse;
}

.les-purchases-table-wrap th,
.les-purchases-table-wrap td {
  padding: 0.76rem 0.9rem;
  border-bottom: 1px solid #e2dfd8;
  color: var(--les-ink);
  text-align: left;
  vertical-align: middle;
}

.les-purchases-table-wrap th {
  background: #e9e5dd;
  color: #746f69;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.les-purchases-table-wrap tbody tr:hover { background: #faf8f4; }
.les-purchases-table-wrap tbody tr.is-discarded { opacity: 0.43; }
.les-purchases-table-wrap tbody tr:last-child td { border-bottom: 0; }
.les-purchases-table-wrap tfoot td { border-top: 2px solid var(--les-ink); border-bottom: 0; background: #f0ede7; font-size: 0.72rem; font-weight: 750; letter-spacing: 0.06rem; text-transform: uppercase; }
.les-purchases-table-wrap tfoot strong { font-family: var(--les-serif); font-size: 1.35rem; font-weight: 500; letter-spacing: 0; }

.les-purchase-thumb {
  display: grid;
  width: 68px;
  height: 62px;
  place-items: center;
  padding: 0.3rem;
  border: 0;
  background: #f0ede7;
}

.les-purchase-thumb .les-product-image,
.les-purchase-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.les-purchase-name { display: flex; min-width: 170px; flex-direction: column; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.les-purchase-name strong { font-family: var(--les-serif); font-size: 1rem; font-weight: 500; }
.les-purchase-name small { margin-top: 0.15rem; color: #827c75; font-size: 0.61rem; font-weight: 700; letter-spacing: 0.045rem; text-transform: uppercase; }
.les-purchase-store { display: inline-block; max-width: 180px; overflow: hidden; color: #5f5953; font-size: 0.76rem; text-overflow: ellipsis; white-space: nowrap; }
.les-purchase-price { font-family: var(--les-serif); font-size: 0.96rem; }
.les-purchase-link { display: inline-grid; width: 35px; height: 35px; place-items: center; border: 1px solid #d0ccc4; background: #fff; }
.les-purchase-link:hover { border-color: var(--les-pink); color: var(--les-pink); }
.les-purchase-link .les-icon { width: 15px; height: 15px; }
.les-purchases-empty { height: 180px; color: #79736c !important; font-family: var(--les-serif); font-style: italic; text-align: center !important; }

.les-budget-topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.les-budget-summary {
  display: grid;
  min-width: min(100%, 620px);
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #d0ccc4;
  background: #fff;
}

.les-budget-summary div {
  display: flex;
  min-height: 98px;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.25rem;
  border-right: 1px solid #e0ddd6;
}

.les-budget-summary div:last-child { border-right: 0; }

.les-budget-summary span {
  color: #837e78;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.les-budget-summary strong {
  margin-top: 0.35rem;
  font-family: var(--les-serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 400;
}

.les-budget-summary .is-over {
  background: #eee6e3;
  color: #6c2f3f;
}

.les-target-budget {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 0 auto;
}

.les-target-budget > span {
  color: #756f69;
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.07rem;
  text-transform: uppercase;
}

.les-target-budget > div {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--les-ink);
}

.les-target-budget input {
  width: 130px;
  padding: 0.45rem 0.2rem;
  border: 0;
  background: transparent;
  font-family: var(--les-serif);
  font-size: 1.25rem;
}

.les-target-budget em {
  color: #7c766f;
  font-size: 0.72rem;
  font-style: normal;
}

.les-budget-table-wrap {
  margin-top: 1.4rem;
  overflow-x: auto;
  border: 1px solid #d0ccc4;
  background: #fff;
}

.les-budget-table-wrap table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.les-budget-table-wrap th,
.les-budget-table-wrap td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2dfd8;
  color: var(--les-ink);
  text-align: left;
  vertical-align: middle;
}

.les-budget-table-wrap th {
  background: #eceae4;
  color: #746f69;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.les-budget-table-wrap tr:last-child td { border-bottom: 0; }
.les-budget-table-wrap tr.is-discarded { opacity: 0.42; }
.les-align-right { text-align: right !important; }

.les-table-product {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.les-table-product .les-product-image {
  display: flex;
  width: 58px;
  height: 52px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  background: #f1efe9;
}

.les-table-product img {
  width: 50px;
  height: 46px;
  object-fit: contain;
}

.les-table-product > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.les-table-product strong {
  font-family: var(--les-serif);
  font-size: 0.98rem;
  font-weight: 400;
}

.les-table-product small { color: #8a8580; font-size: 0.68rem; }

.les-status-pill {
  display: inline-flex;
  padding: 0.34rem 0.52rem;
  border: 1px solid #d0ccc5;
  color: #6c6761;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
}

.les-status-pill.is-approved { border-color: #aeb790; background: #f2f5e8; color: #59633f; }
.les-status-pill.is-discarded { border-color: #c8b6b0; background: #f1ebe7; color: #6c2f3f; }

.les-quantity {
  width: 64px;
  min-height: 38px;
  padding: 0.35rem 0.45rem;
  border: 1px solid #d2cec6;
  background: #fff;
}

.les-modal-root:empty { display: none; }

.les-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(17, 16, 15, 0.72);
  backdrop-filter: blur(8px);
}

.les-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 2.4rem);
  overflow-y: auto;
  border-top: 4px solid var(--les-pink);
  background: #f7f5f0;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.les-project-modal { width: min(570px, 100%); }

.les-modal-close {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  z-index: 2;
  display: flex;
  width: 39px;
  height: 39px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #d1cdc5;
  background: transparent;
}

.les-modal-heading {
  padding: 2.15rem 2.3rem 1.4rem;
  border-bottom: 1px solid #d8d4cc;
}

.les-modal-heading h2 {
  max-width: calc(100% - 50px);
  margin: 0;
  font-family: var(--les-serif);
  font-size: clamp(1.8rem, 4vw, 2.85rem);
  font-weight: 400;
  line-height: 1;
}

.les-modal-heading > p:last-child {
  max-width: 570px;
  margin: 0.7rem 0 0;
  color: #716c66;
  font-family: var(--les-serif);
  font-size: 0.97rem;
}

.les-form-grid,
.les-product-fields {
  display: grid;
  gap: 1rem;
}

.les-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 1.6rem 2.3rem;
}

.les-form-grid label,
.les-product-fields label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.37rem;
}

.les-form-grid label > span,
.les-product-fields label > span {
  color: #67625d;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
}

.les-form-grid input,
.les-product-fields input,
.les-product-fields textarea,
.les-import-row input {
  width: 100%;
  min-height: 43px;
  padding: 0.62rem 0.72rem;
  border: 1px solid #ccc8c0;
  background: #fff;
  color: var(--les-ink);
  font-size: 0.9rem;
  box-shadow: none;
}

.les-product-fields textarea {
  min-height: 68px;
  resize: vertical;
}

.les-import-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  padding: 1.35rem 2.3rem 0;
}

.les-import-message {
  min-height: 1.2rem;
  margin: 0.48rem 2.3rem 0;
  color: #78726d;
  font-size: 0.72rem;
}

.les-import-message.is-success { color: #5f713d; }
.les-import-message.is-error { color: #6c2f3f; }

.les-product-form-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 1.4rem;
  padding: 1rem 2.3rem 1.8rem;
}

.les-import-preview {
  position: relative;
  display: flex;
  min-height: 305px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.3rem;
  border: 1px solid #d4d0c8;
  background: #efede7;
}

.les-import-preview .les-product-image { height: 190px; }

.les-import-preview img {
  width: 100%;
  height: 190px;
  object-fit: contain;
}

.les-import-preview > p {
  margin: 0.75rem 0 0;
  color: #88827c;
  font-family: var(--les-serif);
  font-size: 0.8rem;
  font-style: italic;
}

.les-upload-image {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--les-ink);
  cursor: pointer;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}

.les-upload-image .les-icon { width: 14px; height: 14px; }

.les-two-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.les-price-fields { grid-template-columns: minmax(0, 1fr) 92px; }

.les-form-switch {
  display: flex !important;
  min-height: 58px;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid #d9d5cd;
}

.les-form-switch > span {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.les-form-switch strong {
  color: var(--les-ink);
  font-size: 0.72rem;
  letter-spacing: 0.04rem;
}

.les-form-switch small {
  color: #827d77;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.les-form-switch input {
  position: absolute;
  opacity: 0;
}

.les-form-switch > i {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 24px;
  background: #bbb6ae;
  transition: background 150ms ease;
}

.les-form-switch > i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 150ms ease;
}

.les-form-switch input:checked + i { background: var(--les-pink); }
.les-form-switch input:checked + i::after { transform: translateX(18px); }

.les-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 2.3rem;
  border-top: 1px solid #d8d4cc;
  background: #eeece6;
}

.les-modal-footer > div {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.les-text-danger {
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: #6c2f3f;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}

.les-text-danger:hover { border-bottom-color: currentColor; }

.les-toast-zone {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 100010;
  display: flex;
  width: min(360px, calc(100vw - 2.4rem));
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.les-toast {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid #9cad70;
  background: var(--les-ink);
  color: #fff;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.23);
  font-size: 0.8rem;
  animation: lesToastIn 180ms ease both;
}

.les-toast.is-error { border-left-color: var(--les-pink); }
.les-toast.is-leaving { opacity: 0; transform: translateY(8px); transition: 180ms ease; }
.les-toast .les-icon { color: var(--les-pink); }

@keyframes lesToastIn {
  from { opacity: 0; transform: translateY(10px); }
}

/* Dedicated access management. */
.les-access-modal { width: min(900px, 100%); }

.les-access-created {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.2rem 2.3rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--les-olive);
  background: #e9ebdf;
}

.les-access-created .les-icon { color: #58603f; }
.les-access-created p { display: flex; margin: 0; flex-direction: column; gap: 0.12rem; }
.les-access-created strong { font-family: var(--les-serif); font-size: 1rem; font-weight: 500; }
.les-access-created span { color: #696c5b; font-size: 0.72rem; }

.les-access-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(320px, 1.1fr);
  min-height: 330px;
}

.les-access-list,
.les-access-form { padding: 1.6rem 2.3rem 1.8rem; }
.les-access-list { border-right: 1px solid #d8d4cc; background: #ece8e0; }
.les-access-form { display: flex; flex-direction: column; gap: 0.95rem; background: #f7f5f0; }

.les-access-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  color: #6d6761;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.09rem;
  text-transform: uppercase;
}

.les-access-section-title em {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  background: var(--les-ink);
  color: #fff;
  font-style: normal;
}

.les-access-user {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid #d6d1c8;
}

.les-access-user > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--les-wine, #6c2f3f);
  color: #fff;
  font-family: var(--les-serif);
  font-size: 1.05rem;
}

.les-access-user div { display: flex; min-width: 0; flex-direction: column; }
.les-access-user strong { overflow: hidden; font-family: var(--les-serif); font-size: 0.98rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.les-access-user small { overflow: hidden; color: #7b756e; font-size: 0.67rem; text-overflow: ellipsis; white-space: nowrap; }
.les-access-user em { color: var(--les-pink); font-size: 0.59rem; font-style: normal; font-weight: 750; letter-spacing: 0.06rem; text-transform: uppercase; }
.les-access-loading,
.les-access-empty { margin: 1.2rem 0; color: #7a746d; font-family: var(--les-serif); font-size: 0.88rem; font-style: italic; }

.les-access-form > label { display: flex; flex-direction: column; gap: 0.38rem; }
.les-access-form > label > span { color: #67625d; font-size: 0.68rem; font-weight: 750; letter-spacing: 0.06rem; text-transform: uppercase; }
.les-access-form input {
  width: 100%;
  min-height: 43px;
  padding: 0.62rem 0.72rem;
  border: 1px solid #ccc8c0;
  background: #fff;
  color: var(--les-ink);
  font: inherit;
  box-shadow: none;
}

.les-password-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.les-password-field button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.75rem;
  border: 1px solid var(--les-ink);
  background: var(--les-ink);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
}
.les-password-field .les-icon { width: 14px; height: 14px; }
.les-access-note { margin: 0.1rem 0 0; color: #817a73; font-family: var(--les-serif); font-size: 0.76rem; font-style: italic; }

/* Branded direct login: WordPress stays invisible behind the studio. */
body.les-login-body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #e8e3d9;
  color: var(--les-ink);
  font-family: var(--les-sans);
  -webkit-font-smoothing: antialiased;
}

.les-login-page,
.les-login-page * { box-sizing: border-box; }

.les-login-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 43%) minmax(0, 57%);
  background: #f4f1ea;
}

.les-login-panel {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: clamp(2rem, 5vw, 5.4rem) clamp(2rem, 6vw, 6.5rem) 2.2rem;
  border-right: 1px solid rgba(27, 25, 23, 0.18);
  background:
    linear-gradient(90deg, rgba(108, 47, 63, 0.035) 1px, transparent 1px) 0 0 / 86px 100%,
    #f4f1ea;
}

.les-login-brand {
  font-family: Montserrat, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.05rem, 1.55vw, 1.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.les-login-brand strong { font-weight: 750; }

.les-login-copy { max-width: 470px; margin-top: auto; padding-top: 5rem; }
.les-login-kicker { margin: 0 0 1.2rem; color: var(--les-pink); font-size: 0.65rem; font-weight: 750; letter-spacing: 0.22rem; text-transform: uppercase; }
.les-login-copy h1 { margin: 0; font-family: var(--les-serif); font-size: clamp(2.65rem, 5.2vw, 5.15rem); font-weight: 400; letter-spacing: -0.055em; line-height: 0.88; }
.les-login-copy h1 span { color: var(--les-pink); }
.les-login-copy > p:last-child { max-width: 400px; margin: 1.4rem 0 0; color: #6f6861; font-family: var(--les-serif); font-size: clamp(0.95rem, 1.3vw, 1.12rem); line-height: 1.45; }

.les-login-form,
.les-login-denied { width: min(420px, 100%); margin-top: 2.2rem; }
.les-login-form { display: grid; gap: 1.05rem; }
.les-login-form > label { display: flex; flex-direction: column; gap: 0.38rem; }
.les-login-form > label > span { color: #5f5953; font-size: 0.65rem; font-weight: 750; letter-spacing: 0.09rem; text-transform: uppercase; }
.les-login-form input[type="text"],
.les-login-form input[type="password"] {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid #8d857d;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--les-ink);
  font: 1rem var(--les-sans);
}
.les-login-form input:focus { border-bottom-color: var(--les-pink); box-shadow: 0 1px 0 var(--les-pink); }
.les-login-options { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #756e67; font-size: 0.7rem; }
.les-login-options label { display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer; }
.les-login-options input { accent-color: var(--les-pink); }
.les-login-options a { color: inherit; text-decoration: none; border-bottom: 1px solid #a59e97; }
.les-login-options a:hover { color: var(--les-pink); }

.les-login-submit {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.3rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--les-pink);
  border-radius: 0;
  background: var(--les-pink);
  color: #fff;
  cursor: pointer;
  font: 750 0.72rem var(--les-sans);
  letter-spacing: 0.095rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease;
}
.les-login-submit:hover { border-color: #4f222e; background: #4f222e; }
.les-login-submit:disabled { cursor: not-allowed; opacity: 0.48; }
.les-login-submit:focus-visible,
.les-login-options a:focus-visible { outline: 2px solid var(--les-pink); outline-offset: 3px; }

.les-login-error {
  width: min(420px, 100%);
  margin: 1.5rem 0 -0.8rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--les-pink);
  background: #e9e1df;
  color: #572734;
  font-size: 0.77rem;
  line-height: 1.45;
}

.les-login-foot { margin: auto 0 0; padding-top: 2.5rem; color: #8a837b; font-size: 0.61rem; font-weight: 650; letter-spacing: 0.14rem; text-transform: uppercase; }
.les-login-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(25, 20, 17, 0.04), rgba(25, 20, 17, 0.28)),
    url("images/salon-salamanca.png") center / cover no-repeat;
}
.les-login-visual::before { position: absolute; inset: 0 auto 0 7%; width: 1px; background: rgba(255, 255, 255, 0.38); content: ""; }
.les-login-visual::after { position: absolute; top: 0; right: 0; width: clamp(12px, 1.5vw, 24px); height: 36%; background: var(--les-pink); content: ""; }
.les-login-visual > div { position: absolute; right: clamp(2rem, 5vw, 5rem); bottom: clamp(2rem, 6vw, 5.5rem); left: clamp(2rem, 7vw, 7rem); display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; color: #fff; }
.les-login-visual span { max-width: 9rem; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16rem; line-height: 1.6; text-transform: uppercase; }
.les-login-visual strong { font-family: var(--les-serif); font-size: clamp(2.2rem, 4.3vw, 4.9rem); font-weight: 400; letter-spacing: -0.045em; line-height: 0.9; text-align: right; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.22); }

@media (max-width: 900px) {
  .les-login-page { grid-template-columns: minmax(0, 1fr); }
  .les-login-panel { min-height: 100vh; border-right: 0; }
  .les-login-visual { display: none; }
}

@media (max-width: 1280px) {
  .les-shell { grid-template-columns: 250px minmax(0, 1fr); }
  .les-editor-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .les-header { grid-template-columns: minmax(190px, 1fr) auto; }
  .les-header-meta { display: none; }
  .les-fullscreen-link span:not(.les-icon) { display: none; }
  .les-selection-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .les-shell { display: block; }
  .les-sidebar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 200ms ease;
  }
  .les-app-root.is-sidebar-open .les-sidebar { transform: translateX(0); }
  .les-sidebar-backdrop {
    position: absolute;
    inset: 0;
    z-index: 35;
    display: block;
    border: 0;
    background: rgba(17, 16, 15, 0.44);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
  }
  .les-app-root.is-sidebar-open .les-sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .les-main { height: 100%; }
  .les-mobile-menu { display: inline-flex; }
  .les-editor-layout { grid-template-columns: minmax(0, 1fr) 290px; }
  .les-copy-link { display: none; }
  .les-purchases-topline { align-items: flex-start; flex-direction: column; }
  .les-project-purchase-total { width: 100%; }
  .les-budget-topline { align-items: flex-start; flex-direction: column; }
  .les-budget-summary { width: 100%; }
}

@media (max-width: 760px) {
  .les-login-panel { padding: 1.6rem 1.25rem 1.3rem; }
  .les-login-copy { padding-top: 3.5rem; }
  .les-login-copy h1 { font-size: clamp(2.6rem, 15vw, 4.35rem); }
  .les-login-options { align-items: flex-start; flex-direction: column; gap: 0.65rem; }
  .les-app-root { min-height: 560px; }
  .les-header {
    min-height: 88px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.95rem 1rem;
  }
  .les-header h1 { font-size: 1.65rem; }
  .les-header-actions .les-fullscreen-link { display: none; }
  .les-header-actions .les-button-primary { width: 42px; min-width: 42px; padding: 0; }
  .les-header-actions .les-button-primary > span:last-child:not(.les-icon) { display: none; }
  .les-tabs-bar { min-height: 58px; padding: 0 0.75rem; }
  .les-tabs { overflow-x: auto; }
  .les-tabs button { padding: 0 0.7rem; font-size: 0.66rem; }
  .les-tabs button:first-child { padding-left: 0; }
  .les-tabs button .les-icon { display: none; }
  .les-tabs button::after { right: 0.7rem; left: 0.7rem; }
  .les-tabs button:first-child::after { left: 0; }
  .les-add-piece { width: 41px; min-width: 41px; padding: 0; }
  .les-add-piece > span:last-child:not(.les-icon) { display: none; }
  .les-editor-layout { display: flex; min-height: auto; flex-direction: column; }
  .les-canvas-column { padding: 0.75rem; }
  .les-canvas-toolbar { flex-wrap: wrap; }
  .les-upload-room span:not(.les-icon) { display: none; }
  .les-history-tools { margin-left: 0; }
  .les-selection-tools { order: 4; width: 100%; }
  .les-canvas-hint { display: none; }
  .les-moodboard-canvas { min-height: 420px; aspect-ratio: 4 / 5; flex: none; }
  .les-pieces-panel { min-height: 360px; border-top: 1px solid #d5d2ca; border-left: 0; }
  .les-product-stack { max-height: 390px; }
  .les-content-page { padding: 1.4rem 1rem 2.5rem; }
  .les-selection-grid { margin-top: 1.7rem; }
  .les-selection-card { grid-template-columns: 42% minmax(0, 1fr); }
  .les-selection-actions { grid-column: 1 / -1; }
  .les-store-totals { grid-template-columns: 1fr; }
  .les-budget-summary { grid-template-columns: 1fr; }
  .les-budget-summary div { min-height: 76px; border-right: 0; border-bottom: 1px solid #e0ddd6; }
  .les-budget-summary div:last-child { border-bottom: 0; }
  .les-target-budget { align-items: flex-start; flex-direction: column; margin-left: 0; }
  .les-modal-overlay { padding: 0; align-items: stretch; }
  .les-modal { width: 100%; max-height: 100vh; border-top-width: 3px; }
  .les-modal-heading { padding: 1.7rem 1.2rem 1.15rem; }
  .les-modal-close { top: 0.85rem; right: 0.85rem; }
  .les-form-grid { grid-template-columns: 1fr; padding: 1.3rem 1.2rem; }
  .les-import-row { grid-template-columns: 1fr; padding: 1.2rem 1.2rem 0; }
  .les-import-message { margin-inline: 1.2rem; }
  .les-product-form-layout { grid-template-columns: 1fr; padding: 0.8rem 1.2rem 1.4rem; }
  .les-access-created { margin: 1rem 1.2rem 0; }
  .les-access-layout { grid-template-columns: 1fr; }
  .les-access-list { max-height: 260px; overflow-y: auto; border-right: 0; border-bottom: 1px solid #d8d4cc; }
  .les-access-list,
  .les-access-form { padding: 1.25rem 1.2rem; }
  .les-import-preview { min-height: 225px; }
  .les-import-preview .les-product-image,
  .les-import-preview img { height: 130px; }
  .les-modal-footer { padding: 1rem 1.2rem; }
}

@media (max-width: 460px) {
  .les-login-brand { font-size: 0.93rem; }
  .les-login-copy { margin-top: auto; }
  .les-password-field { grid-template-columns: 1fr; }
  .les-password-field button { min-height: 40px; justify-content: center; }
  .les-header-title .les-eyebrow { display: none; }
  .les-header-actions { gap: 0.35rem; }
  .les-tabs button { font-size: 0.61rem; letter-spacing: 0.025rem; }
  .les-tabs button > span:last-child:not(.les-icon) { display: none; }
  .les-selection-card { display: block; }
  .les-selection-image { min-height: 180px; }
  .les-two-fields { grid-template-columns: 1fr; }
  .les-price-fields { grid-template-columns: minmax(0, 1fr) 88px; }
  .les-modal-footer { align-items: stretch; flex-direction: column; }
  .les-modal-footer > div { width: 100%; }
  .les-modal-footer .les-button { flex: 1; }
}

@media print {
  @page { size: landscape; margin: 10mm; }
  html,
  body,
  .les-app-root {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }
  #adminmenumain,
  #wpadminbar,
  .les-sidebar,
  .les-sidebar-backdrop,
  .les-tabs-bar,
  .les-header-actions,
  .les-mobile-menu,
  .les-canvas-toolbar,
  .les-pieces-panel,
  .les-modal-root,
  .les-toast-zone {
    display: none !important;
  }
  #wpcontent { margin-left: 0 !important; }
  .les-shell { display: block !important; height: auto !important; }
  .les-main,
  .les-tab-content { display: block !important; height: auto !important; overflow: visible !important; }
  .les-header { min-height: 75px; padding: 0 0 12mm; border: 0; background: #fff; }
  .les-header-meta { display: flex !important; }
  .les-editor-layout { display: block; }
  .les-canvas-column { padding: 0; }
  .les-moodboard-canvas { width: 100%; height: 166mm; min-height: 0; box-shadow: none; }
  .les-content-page { padding: 0; }
  .les-selection-grid { margin-top: 10mm; }
  .les-store-totals { grid-template-columns: repeat(3, 1fr); margin-top: 7mm; }
  .les-purchases-table-wrap { margin-top: 6mm; overflow: visible; }
  .les-budget-table-wrap { margin-top: 8mm; }
}
