/* Creator reconstruction uses the storefront's structural wall primitives.
   Only the merchandise, dressing, and interaction layers are omitted. */

body.creator-workspace-page {
  min-width: 0;
  overflow-x: hidden;
}

body.creator-workspace-page .page-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body:has(.creator-dashboard-shop-wall) .site-header {
  position: sticky;
  top: 0;
  z-index: 140;
}

body:has(.creator-dashboard-shop-wall) .site-header .brand {
  display: none;
}

body:has(.creator-dashboard-shop-wall) .site-nav {
  width: min(1420px, 100%);
  justify-content: center;
}

body:has(.creator-dashboard-shop-wall) .creator-menu-placeholder {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 6px 0 5px;
  border: 0;
  border-radius: 0;
  color: #251309;
  font: 800 1.008rem/1.1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.025em;
  text-shadow: 0 1px 0 rgba(255, 238, 190, 0.55);
}

.creator-dashboard-shop-wall {
  min-height: calc(100vh - 50px);
  padding: 0;
}

.creator-dashboard-shop-wall .shop-wall-row--identity {
  min-height: max(420px, calc(100vh - 50px));
}

/* Creator uses the exact frozen Customer upper-cabinet coordinate system. */
.creator-dashboard-shop-wall .shop-wall-fixed-cabinet > .shop-wall-row--identity {
  display: block;
  min-height: 0;
  height: 100%;
  padding: 0;
  background: none;
}

.creator-dashboard-shop-wall .shop-wall-fixed-cabinet .shop-wall-bay,
.creator-dashboard-shop-wall .shop-wall-fixed-cabinet .shop-wall-shelves,
.creator-dashboard-shop-wall .shop-wall-fixed-cabinet .shop-wall-shelf-level {
  display: contents;
}

.creator-dashboard-shop-wall .shop-wall-bay--identity {
  padding: clamp(22px, 3vw, 44px);
}

.creator-dashboard-shop-wall .shop-wall-bay--library {
  grid-template-rows: 1fr;
}

/* Replace only the baked central branding with the established wood sign.
   Shelf geometry and the frozen cabinet artwork remain the same. */
.creator-dashboard-shop-wall .shop-wall-fixed-cabinet .creator-dashboard-brand-board {
  position: absolute !important;
  inset: auto;
  top: 3%;
  left: 35%;
  width: 30%;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  overflow: visible !important;
  clip-path: none !important;
  z-index: 2;
  transform: none;
}

.creator-dashboard-brand-board > .creator-dashboard-trg-mark {
  position: absolute;
  z-index: 3;
  top: 9%;
  left: 2.5%;
  display: block;
  width: clamp(168px, 45cqw, 208px);
  height: auto;
  max-width: 45%;
  margin: 0;
  transform: none;
  filter: drop-shadow(0 3px 4px rgba(35, 15, 5, .62));
}

.creator-dashboard-brand-board .creator-dashboard-creator-identity {
  position: absolute;
  z-index: 3;
  top: 12.3%;
  right: 2%;
  left: auto;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: min(260px, 52%);
  transform: none;
  color: #211108;
  font: 800 clamp(1rem, 3.1cqw, 1.3rem)/1.12 Georgia, "Times New Roman", serif;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 235, 178, 0.42);
}

.creator-dashboard-creator-identity[hidden],
.creator-dashboard-creator-image[hidden],
.creator-dashboard-creator-initials[hidden] {
  display: none !important;
}

.creator-dashboard-creator-image {
  width: clamp(54px, 15cqw, 76px);
  height: clamp(54px, 15cqw, 76px);
  max-width: 100%;
  border: 2px solid rgba(53, 26, 11, 0.9);
  border-radius: 7px;
  background: rgba(245, 210, 143, 0.26);
  object-fit: contain;
  box-shadow: 0 3px 7px rgba(37, 17, 7, 0.38);
}

.creator-dashboard-creator-initials {
  display: inline-block !important;
  text-align: center;
  width: min(236px, 100%);
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  color: transparent;
  background: linear-gradient(180deg,
    #fff7c7 0%,
    #fff7c7 2%,
    #f6c24f 6%,
    #cf7b0d 15%,
    #7b3002 27%,
    #351003 40%,
    #241006 47%,
    #9e4b04 55%,
    #f0b63b 67%,
    #7a2f02 77%,
    #321003 85%,
    #c46b0a 94%,
    #fff1ac 98%,
    #fff1ac 100%);
  -webkit-background-clip: text;
  background-clip: text;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(211, 139, 28, 0.9);
  font: 900 clamp(2.1rem, 6.5cqw, 3rem)/0.9 Georgia, "Times New Roman", serif;
  letter-spacing: 0.04em;
  text-shadow:
    0 1px 0 rgba(255, 244, 181, 0.68),
    0 3px 0 rgba(103, 39, 4, 0.78),
    0 12px 14px rgba(37, 17, 7, 0.66);
  box-shadow: none;
}

.creator-dashboard-creator-initials-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 12px 14px rgba(37, 17, 7, 0.82));
}

.creator-dashboard-creator-initials:not([hidden]) {
  visibility: visible;
  opacity: 1;
}

.creator-dashboard-creator-name {
  max-width: 100%;
  overflow-wrap: anywhere;
  font: 800 clamp(.86rem, 2.7cqw, 1.05rem)/1.12 Georgia, "Times New Roman", serif;
  color: #211108;
  background: none;
  -webkit-text-fill-color: currentColor;
  -webkit-text-stroke: 0;
  text-shadow: 0 1px 0 rgba(255, 235, 178, 0.42);
}

.creator-dashboard-brand-wordmark {
  position: absolute;
  z-index: 3;
  right: 5%;
  bottom: 8%;
  left: 5%;
  display: grid;
  gap: 1px;
  margin: 0;
  color: #1b1008;
  font: 800 clamp(1.25rem, 8cqw, 2.25rem)/.98 Georgia, "Times New Roman", serif;
  letter-spacing: .025em;
  text-align: center;
  text-shadow: 0 1px 0 rgba(234, 170, 87, .48), 0 -1px 1px rgba(39, 16, 5, .25);
  text-transform: uppercase;
  pointer-events: none;
}

.creator-dashboard-brand-wordmark span { white-space: nowrap; }

.creator-dashboard-shop-wall .shop-wall-shelf-level {
  min-height: 126px;
}

/* The storefront base stylesheet uses a striped placeholder behind library rows.
   Creator shelves carry real rendered books, so that placeholder must not remain
   visible behind or below them. */
.creator-dashboard-open-rules-bay .shop-wall-library-books {
  background: transparent !important;
  overflow: visible;
}

.creator-dashboard-library-bay .shop-wall-library-books {
  background: transparent !important;
  overflow: visible;
}

.creator-dashboard-open-rules-bay .homepage-open-rules-book__rotation {
  overflow: visible;
}

.creator-workspace-page .guest-open-rules-examination-close {
  position: fixed;
  z-index: 10001;
  display: grid;
  width: clamp(38px, 9vw, 46px);
  height: clamp(38px, 9vw, 46px);
  place-items: center;
  padding: 0;
  border: 2px solid rgba(255, 233, 190, .92);
  border-radius: 50%;
  background: rgba(28, 14, 8, .94);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(118, 73, 33, .9);
  color: #fff1cf;
  font: 700 30px/1 Arial, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}

.creator-workspace-page .guest-open-rules-examination-close:hover,
.creator-workspace-page .guest-open-rules-examination-close:focus-visible {
  background: #6c3216;
  outline: 3px solid #fff1cf;
  outline-offset: 2px;
}

.creator-workspace-page .guest-open-rules-examination-close[hidden] {
  display: none;
}

.creator-dashboard-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body.creator-workspace-page .creator-dashboard-footer {
  display: block;
  margin: 0;
  padding: 10px 22px;
  border: 0;
  border-top: 5px solid #4a2c1b;
  border-radius: 0;
  background: linear-gradient(90deg, #0b1d14, #06120c 60%, #0b1d14);
  color: #aa9d80;
  text-align: right;
}

.creator-dashboard-footer p {
  margin: 0;
  font: 500 0.68rem/1.35 Georgia, "Times New Roman", serif;
}

.creator-dashboard-footer a {
  color: #c6a95d;
}

@media (max-width: 1023px) {
  .creator-dashboard-shop-wall .shop-wall-fixed-cabinet .creator-dashboard-brand-board {
    top: 2.5%;
    left: 1.5%;
    width: 97%;
    height: 47.5%;
    padding: 12px;
  }

  .creator-dashboard-brand-board > .creator-dashboard-trg-mark {
    top: 6%;
    left: 5%;
    width: clamp(160px, 28cqw, 200px);
    max-width: 30%;
  }

  .creator-dashboard-brand-board .creator-dashboard-creator-identity {
    top: 12%;
    right: 5%;
    width: min(260px, 34%);
    transform: none;
  }

  .creator-dashboard-brand-wordmark {
    bottom: 7%;
    font-size: clamp(1.4rem, 7cqw, 2.2rem);
  }

  .creator-dashboard-shop-wall .shop-wall-row--identity {
    min-height: max(620px, calc(100vh - 58px));
  }

  .creator-dashboard-shop-wall .shop-wall-fixed-cabinet > .shop-wall-row--identity {
    min-height: 0;
  }

  .creator-dashboard-shop-wall .shop-wall-bay--identity {
    min-height: 300px;
  }
}

@media (max-width: 699px) {
  .creator-dashboard-shop-wall .shop-wall-row--identity {
    min-height: max(900px, calc(100vh - 58px));
  }

  .creator-dashboard-shop-wall .shop-wall-fixed-cabinet > .shop-wall-row--identity {
    min-height: 0;
  }

  .creator-dashboard-shop-wall .shop-wall-fixed-cabinet .creator-dashboard-brand-board {
    top: 1.2%;
    left: 5%;
    width: 90%;
    height: 25%;
    padding: 8px;
  }

  .creator-dashboard-brand-board > .creator-dashboard-trg-mark {
    top: 6%;
    left: 4%;
    width: 128px;
    max-width: 44%;
  }

  .creator-dashboard-brand-board .creator-dashboard-creator-identity {
    top: 14%;
    right: 4%;
    width: 45%;
  }

  .creator-dashboard-brand-board .creator-dashboard-creator-image {
    width: clamp(42px, 14cqw, 54px);
    height: clamp(42px, 14cqw, 54px);
  }

  .creator-dashboard-brand-board .creator-dashboard-creator-initials {
    width: min(144px, 100%);
  }

  .creator-dashboard-brand-wordmark {
    bottom: 6%;
    font-size: clamp(1.1rem, 7cqw, 1.55rem);
  }

  body.creator-workspace-page .creator-dashboard-footer {
    padding: 9px 14px;
    text-align: center;
  }
}
