:root {
  --visual-surface: #19191f;
  --visual-lavender: #d3c6eb;
  --visual-line: #34333f;
  --visual-ease: cubic-bezier(.18,.7,.23,1);
}
.visual-pageheading { display: none; }
.content:has(.visual-pageheading) { padding-top: 28px; }
.visual-eyebrow {
  margin: 0 0 10px;
  color: var(--visual-lavender);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .06em;
}
button, a, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.nav-item, .primary, .outline, .tab, .thread, .save-btn, .start-step {
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--visual-ease);
}
.primary:active, .outline:active, .shared-quiet-button:active { transform: scale(.98); }

.visual-lab {
  display: grid;
  grid-template-columns: minmax(190px, .85fr) minmax(0, 1.45fr);
  overflow: hidden;
  min-height: 374px;
  border: 1px solid var(--visual-line);
  border-radius: 18px;
  background: #1b1922;
}
.visual-lab-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 28px 6px 28px 28px;
}
.visual-lab-copy h1, .visual-discussion-intro h1 {
  margin: 0;
  font-size: clamp(30px, 3.1vw, 51px);
  line-height: 1.12;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.visual-lab-copy > p:last-of-type, .visual-discussion-intro > p:last-of-type {
  max-width: 26ch;
  margin: 15px 0 0;
  color: #c7c1d2;
  line-height: 1.72;
  font-size: 13px;
}
.visual-lab-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-top: 22px; }
.visual-lab-actions .primary { min-height: 40px; color: #171c15; }
.visual-lab-actions .primary span { margin-left: 8px; }
.visual-link { background: none; border: 0; padding: 7px 0; color: var(--visual-lavender); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.visual-link:hover { color: #fff; }
.visual-lab-render { position: relative; min-height: 374px; overflow: hidden; }
.visual-lab-stage { position: absolute; inset: 0 0 83px; }
.visual-lab-stage > form-product-model { height: 100%; --model-radius: 0; --model-ratio: auto; }
.visual-lab-chip {
  position: absolute;
  z-index: 1;
  padding: 5px 8px;
  border: 1px solid #e9ddff36;
  border-radius: 5px;
  background: #211c2ce3;
  color: #ece4fb;
  font-size: 11px;
  backdrop-filter: blur(8px);
}
.visual-lab-chip { left: 14px; bottom: 52px; max-width: calc(100% - 28px); }
.visual-scene-control { position: absolute; z-index: 1; inset: auto 12px 13px; display: flex; gap: 8px; align-items: center; }
.visual-scene-group {
  display: flex;
  gap: 3px;
  background: #14131adc;
  border: 1px solid #ffffff2b;
  padding: 4px;
  border-radius: 8px;
}
.visual-scene-group button, .visual-tour {
  border: 0;
  border-radius: 5px;
  padding: 7px 9px;
  min-height: 31px;
  color: #e2dbea;
  background: transparent;
  white-space: nowrap;
  font-size: 11px;
  cursor: pointer;
  transition: color .24s, background .24s, transform .24s var(--visual-ease);
}
.visual-scene-group button:hover, .visual-tour:hover { background-color: #ffffff25; }
.visual-scene-group button[aria-pressed="true"] { background: var(--visual-lavender); color: #20172d; }
.visual-tour { margin-left: auto; padding-inline: 7px; }
.visual-tour[aria-pressed="true"] { color: var(--green); }
.visual-shelves { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 14px 0 30px; }
.visual-shelf {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  color: #f5f1fb;
  border: 1px solid var(--visual-line);
  border-radius: 10px;
  background: var(--visual-surface);
  transition: border-color .2s var(--visual-ease);
}
.visual-shelf:hover { border-color: #857598; }
.visual-shelf > form-product-model { --model-radius: 0; }
.visual-shelf-link { display: flex; align-items: center; justify-content: space-between; gap: 5px; text-align: left; padding: 9px 11px; min-height: 44px; }
.visual-shelf strong, .visual-shelf small { display: block; }
.visual-shelf strong { font-size: 15px; }
.visual-shelf small { color: #ded5e9; margin-top: 4px; font-size: 10px; }
.visual-shelf b { color: var(--visual-lavender); }

.shared-community {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.visual-discussion-hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  min-height: 228px;
  border: 1px solid var(--visual-line);
  border-radius: 15px;
  overflow: hidden;
  background: #1b1922;
}
.visual-discussion-art { align-self: stretch; min-height: 100%; --model-radius: 0; }
.visual-discussion-intro { margin: 25px; }
.visual-discussion-intro h1 { font-size: clamp(28px,3vw,45px); }
.shared-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 17px 0 7px; }
.shared-filter { display: flex; flex-wrap: wrap; gap: 4px; }
.shared-filter button, .shared-quiet-button {
  max-width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #c7c4d0;
  font-size: 12px;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s, transform .2s var(--visual-ease);
}
.shared-filter button:hover, .shared-quiet-button:hover { background: #292631; color: #fff; }
.shared-filter button[aria-pressed="true"] { border-color: #594c69; background: #312838; color: #f0e6fb; font-weight: 650; }
.shared-toolbar-actions, #shared-account, .shared-member { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.shared-toolbar-actions .primary { color: #171c15; margin-left: 5px; }
.shared-member { margin: 0; gap: 2px; font-size: 12px; }
.shared-feed-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; color: #a9a6b1; font-size: 11px; margin: 13px 0; }
.shared-feed-head select { border: 1px solid var(--visual-line); background: #1b191f; color: #e5e0ee; padding: 5px 7px; margin-left: 4px; border-radius: 5px; }
.shared-loading { border-radius: 12px; border: 1px solid var(--visual-line); padding: 18px; color: #c5becf; background: #1d1b22; }
.shared-post-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; gap: 13px; }
.shared-post {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--visual-line);
  border-radius: 12px;
  background: var(--visual-surface);
  transition: border-color .22s, background .22s, transform .26s var(--visual-ease);
}
.shared-post:hover { border-color: #70617c; transform: translateY(-2px); background: #201e26; }
.shared-post-grid.is-entering .shared-post { animation: form-card-in .37s var(--visual-ease) both; animation-delay: calc(var(--card-order,0) * 38ms); }
@keyframes form-card-in { from{opacity:.15;transform:translateY(10px)} to {opacity:1;transform:translateY(0)} }
.shared-card-cover {
  position: relative;
  aspect-ratio: 1.78;
  width: 100%;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--visual-line);
  background: #25212d;
  text-align: left;
}
.shared-card-cover > form-product-model { height: 100%; --model-radius: 0; --model-ratio: auto; }
.shared-cover-label, .shared-thread-cover span {
  position: absolute;
  left: 9px;
  bottom: 9px;
  padding: 4px 7px;
  background: #14111de8;
  border-radius: 4px;
  font-size: 10px;
  color: #e3d8f1;
  pointer-events: none;
}
.shared-card-copy { flex: 1; display: flex; flex-direction: column; padding: 12px; }
.shared-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11px; color: #b6aeba; }
.shared-category { color: var(--visual-lavender); font-weight: 600; }
.shared-card-copy h3 { margin: 6px 0 5px; }
.shared-card-title {
  padding: 0;
  border: 0;
  background: transparent;
  color: #f3eef8;
  text-align: left;
  font: inherit;
  font-weight: 680;
  line-height: 1.47;
  cursor: pointer;
}
.shared-card-title:hover { color: var(--visual-lavender); }
.shared-card-copy .shared-card-excerpt {
  margin: 0 0 12px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
  line-height: 1.62;
  color: #b7b4c0;
}
.shared-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; border-top: 1px solid #56505e55; padding-top: 7px; }
.shared-card-foot small { overflow-wrap: anywhere; }
.shared-comment-count { background: transparent; border: 0; padding: 6px 3px; color: #d9c8ef; font-size: 11px; white-space: nowrap; cursor: pointer; }
.shared-comment-count:hover { color: #fff; }
.shared-thread-cover, .visual-article-image, .compare-visual {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin: 0 0 15px;
  background: #24202b;
}
.shared-thread-cover { aspect-ratio: 2; }
.shared-thread .shared-thread-text { white-space: pre-wrap; }
.shared-thread-text a { color: var(--visual-lavender); }
.shared-thread-byline { color: #a8a0b3; font-size: 12px; }
.shared-thread #shared-thread-comments { scroll-margin-top: 18px; }
.shared-thread .text-button { background: transparent; border: 0; color: #c6b7d8; text-decoration: underline; padding: 5px 0; cursor: pointer; }
.shared-auth-dialog h2 { margin-bottom: 12px; }
.shared-auth-dialog .shared-join { margin: 0; }
.shared-auth-dialog .text-button { border: 0; background: none; color: var(--visual-lavender); text-decoration: underline; cursor: pointer; }
.shared-auth-dialog .shared-join > strong { display: none; }
.shared-auth-dialog input:not([type=checkbox]) { width: 100%; }
#modal[open] { animation: form-dialog-in .26s var(--visual-ease) both; }
#modal::backdrop { backdrop-filter: blur(6px); background-color: #08070bd1; }
@keyframes form-dialog-in { from { opacity:0; transform:translateY(10px) scale(.987); } to { opacity:1; transform:none; } }

.rail-section:has(.visual-rail-model) { padding-top: 12px; }
.visual-rail-model { --model-ratio: 1.72; margin-bottom: 12px; }
.hardware-rail .lineicon { overflow: hidden; border-radius: 7px; }
.thumbnail > form-product-model, .hardware-rail .lineicon > form-product-model { height: 100%; --model-ratio: auto; }
.visual-thread { display: grid; grid-template-columns: 78px minmax(0,1fr); align-items: center; gap: 8px; margin: 6px 0; }
.visual-thread-model { --model-ratio: 1.4; --model-radius: 5px; }
.visual-thread > .thread { min-width: 0; }
.compare-visual, .visual-article-image { margin-top: 14px; }
.tool-controls .select-field { min-width: 0; }
.compare-table { overflow-wrap: anywhere; }
.compare-visual form-product-model { --model-ratio: 2.1; }
.visual-article-image form-product-model { --model-ratio: 1.8; }
.compare-visual-caption { position: absolute; inset: 7px auto auto 7px; background: #17131fdf; border-radius: 4px; color: #efe3ff; padding: 4px 8px; font-size: 10px; pointer-events: none; }

@media(max-width: 760px) {
  .content:has(.visual-pageheading) { padding-top: 15px; }
  .visual-lab { min-height: 300px; }
  .visual-lab-copy { padding-left: 16px; }
  .visual-lab-render { min-height: 300px; }
  .visual-lab-copy h1 { font-size: 31px; }
  .visual-discussion-hero { min-height: 192px; }
}
@media(max-width: 550px) {
  .visual-lab { grid-template-columns: 1fr; }
  .visual-lab-copy { padding: 20px 16px 11px; }
  .visual-lab-copy > p:last-of-type { margin-top: 8px; }
  .visual-lab-actions { margin-top: 12px; }
  .visual-lab-render { min-height: 255px; }
  .visual-scene-control { inset-inline: 8px; gap: 4px; }
  .visual-scene-group { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 3px; }
  .visual-scene-group button, .visual-tour { white-space: normal; padding: 4px; line-height: 1.2; }
  .visual-tour { max-width: 68px; }
  .visual-lab-chip { bottom: 55px; }
  .visual-shelves { gap: 6px; margin-bottom: 20px; }
  .visual-shelf-link { padding: 6px; }
  .visual-shelf > form-product-model { --model-ratio: 1.15; }
  .visual-shelf strong { font-size: 12px; }
  .visual-shelf small { display: none; }
  .visual-discussion-intro { margin: 15px; }
  .visual-discussion-intro h1 { font-size: 30px; }
  .visual-discussion-intro > p:last-of-type { max-width: 13ch; }
  .tool-controls { flex-direction: column; }
  .shared-toolbar { align-items: flex-start; }
  .shared-filter button { padding-inline: 7px; }
  .shared-post-grid { gap: 9px; grid-template-columns: minmax(0,1fr); }
  .shared-card-cover { aspect-ratio: 2.15; }
  .shared-card-copy { padding: 10px 11px; }
}
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .visual-lab *, .visual-shelf, .shared-post, .shared-post-grid.is-entering .shared-post,
  .shared-filter button, .shared-quiet-button, #modal[open],
  .nav-item, .primary, .outline, .tab, .thread, .save-btn, .start-step {
    animation: none !important;
    transition: none !important;
  }
}

.visual-expand {
  position: absolute;
  z-index: 2;
  right: 12px;
  top: 12px;
  padding: 5px 8px;
  border: 1px solid #e9ddff3b;
  border-radius: 5px;
  background: #201a2be6;
  color: #f1e6ff;
  font-size: 11px;
  cursor: pointer;
  transition: background .2s;
}
.visual-expand:hover { background: #443751; }
.visual-expanded-model { --model-ratio: 1.4; margin-top: 12px; }
.visual-material-frame { position: relative; overflow: hidden; }
.visual-material-switch { display: flex; flex-wrap: wrap; gap: 5px; padding: 7px; }
.visual-material-switch button { border: 1px solid transparent; border-radius: 4px; padding: 6px 9px; color: #d6cde0; background: none; cursor: pointer; }
.visual-material-switch button:hover { background: #383043; }
.visual-material-switch button[aria-pressed="true"] { border-color: #625270; background: #392c47; color: #f3e8fc; }
