.disign-guide {
  --disign-guide-accent: #e0e3e7;
}

:where(.disign-guide) .roblox-guide-toolbar > button {
  background: rgb(16 16 16 / .88);
}

.disign-tile[data-open="false"]:not([data-turning]) .tile-back,
.disign-tile[data-open="true"]:not([data-turning]) .tile-front {
  visibility: hidden;
}

.disign-tile-back-art {
  position: absolute;
  z-index: 0;
  right: -10%;
  bottom: -15%;
  width: 85%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}

.disign-tile-back > :is(.tile-back-content, .disign-tile-guide-open) {
  position: relative;
  z-index: 1;
}

.disign-tile-guide-open {
  --guide-face: linear-gradient(180deg, #222, #131313 48%, #080808);
  --guide-edge: linear-gradient(155deg, #555, #303030 27%, #1c1c1c 66%, #3c3c3c);
  --guide-base: #101010;
  --guide-seam: #030303;
  --guide-focus: #b0b0b0;
  flex: none;
  order: -1;
  align-self: center;
  width: 60.84%;
  /* Match the control on Roblox's two-row tile. */
  height: clamp(44px, calc(24.8cqw + var(--tile-gap) * .124), 64px);
  margin: 14px 0 0;
  font-family: 'Home Topic Inter', Inter, sans-serif;
  font-weight: 900;
  line-height: normal;
}

.disign-guide[data-returning],
.disign-guide-panel[data-resizing] {
  overflow-anchor: none;
}

.disign-guide [data-resizing] {
  overflow: hidden;
}

.disign-guide-step {
  background: none;
}

.disign-guide-step > .roblox-guide-summary {
  background: linear-gradient(115deg, #0e0e0e, #030404);
}

.disign-guide-step-view {
  margin-block-start: 12px;
  border-radius: inherit;
}

.disign-guide-content {
  padding: 22px clamp(14px, 5.6cqw, 26px) 26px;
  border-radius: inherit;
  background: linear-gradient(96deg, #0c0c0c, #040505);
  overflow-wrap: anywhere;
}

.disign-guide-header {
  margin-bottom: 1.35em;
}

.disign-guide-content .disign-guide-title {
  margin: 0 0 .45em;
}

.disign-guide-intro {
  position: relative;
}

.disign-guide-intro-toggle {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.disign-guide-intro-toggle:focus-visible {
  outline: 2px solid var(--disign-guide-accent);
  outline-offset: 3px;
}

.disign-guide-intro .disign-guide-subtitle {
  margin-top: 0;
  color: #c7cbd0;
}

.disign-guide-content a {
  color: var(--disign-guide-accent);
  text-underline-offset: .18em;
}

.disign-guide-content blockquote {
  border-inline-start-color: #55595d;
  color: #dddfe1;
}

.disign-guide-figure {
  margin: 1.15em 0;
}

.disign-guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #090909;
}

.disign-guide-figure figcaption {
  margin-top: .5em;
  color: #b7b9bc;
  font-size: 13px;
}

.disign-guide-chapters {
  display: grid;
  gap: clamp(10px, 3.4cqw, 16px);
  margin: .85em 0 1.4em;
}

.disign-guide-chapter {
  border-radius: clamp(17px, 5.5cqw, 22px);
  background: linear-gradient(90deg, #151517, #121214);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .045);
}

.disign-guide-chapter-summary {
  display: grid;
  grid-template-columns: clamp(55px, 17.5cqw, 69px) minmax(0, 1fr) 10px;
  align-items: center;
  gap: clamp(9px, 3.2cqw, 13px);
  width: 100%;
  min-height: clamp(68px, 22cqw, 92px);
  padding: 12px clamp(14px, 5cqw, 22px);
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #f5f4f4;
  font: 900 clamp(13px, 4.05cqw, 16px) / 1.35 'Home Topic Inter', Inter, sans-serif;
  text-align: start;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

.disign-guide-chapter-summary:active { background-color: rgb(255 255 255 / .055); }

.disign-guide-chapter-summary::after {
  width: 6px;
  height: 6px;
  border-right: 1px solid #8a8e91;
  border-bottom: 1px solid #8a8e91;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
  content: '';
}

.disign-guide-chapter-summary[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

.disign-guide-chapter-summary:focus-visible {
  outline: 2px solid var(--disign-guide-accent);
  outline-offset: -3px;
}

.disign-guide-chapter-number {
  color: #fff;
  font-size: clamp(28px, 9.1cqw, 34px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
  line-height: 1;
  white-space: nowrap;
}

.disign-guide-chapter-body {
  padding: 2px clamp(14px, 5cqw, 22px) 20px;
  color: #d9dbdd;
  font-size: 14px;
}

.disign-guide-chapter-body > :first-child {
  margin-top: 0;
}

.disign-guide-panel {
  display: flow-root;
}

@media (prefers-reduced-motion: reduce) {
  .disign-guide-chapter-summary,
  .disign-guide-chapter-summary::after {
    transition: none;
  }
}
