/*
 * Showroom identity for the existing workshop shell.
 *
 * Visual overrides only: the original layout, responsive behavior, control
 * placement, touch targets, image crops and panel geometry stay unchanged.
 * Specialist component, dossier, graphics, parts and showroom-dialog styles
 * remain owned by their dedicated stylesheets.
 */

body {
  background: var(--mf-paper);
  color: var(--mf-ink);
  font-family: var(--mf-font);
}

main button,
main input,
main select,
main summary,
body > header button {
  font-family: var(--mf-font);
}

main button,
body > header button {
  font-weight: 550;
  letter-spacing: -.012em;
}

main button:focus-visible,
main a:focus-visible,
main input:focus-visible,
main select:focus-visible,
main summary:focus-visible,
body > header button:focus-visible,
body > header a:focus-visible,
.concept-bar a:focus-visible {
  outline: 3px solid var(--mf-focus);
  outline-offset: 3px;
}

/* Preview strip and workshop navigation */
.concept-bar {
  border-bottom: 1px solid var(--mf-rule);
  background: var(--mf-control);
  color: var(--mf-secondary);
}

.concept-bar > span:first-child {
  color: var(--mf-ink);
  font-family: var(--mf-mono);
  font-weight: 550;
}

.concept-bar b,
.concept-bar a {
  color: var(--mf-ink);
}

.concept-bar a {
  text-decoration-color: var(--mf-rule);
  text-underline-offset: 4px;
}

body > header {
  border-bottom-color: var(--mf-rule);
  background: var(--mf-paper);
}

.logo {
  color: var(--mf-ink);
  font-weight: 850;
  font-style: italic;
  letter-spacing: -.075em;
}

.logo span {
  font-weight: 550;
}

.logo i {
  color: var(--mf-secondary);
  font-style: normal;
  letter-spacing: .04em;
}

body > header nav {
  align-items: stretch;
  gap: 4px;
  height: 44px;
  padding: 2px 3px;
  border-radius: 999px;
  background: var(--mf-control);
}

body > header nav button {
  min-height: 40px;
  padding: 0 16px;
  border-color: transparent;
  border-radius: 999px;
  color: var(--mf-secondary);
}

body > header nav button:hover:not(.active) {
  background: var(--mf-paper);
  color: var(--mf-ink);
}

body > header nav button.active {
  border-bottom-color: transparent;
  background: var(--mf-active);
  color: var(--mf-on-active);
}

.local {
  color: var(--mf-secondary);
  font-family: var(--mf-mono);
}

.local i {
  background: var(--mf-focus);
}

/* Shared showroom typography */
main .eyebrow {
  color: var(--mf-secondary);
  font-family: var(--mf-mono);
  font-weight: 550;
  letter-spacing: .11em;
}

.page h1 {
  color: var(--mf-ink);
  font-weight: 540;
  letter-spacing: -.065em;
}

.page h1 em {
  color: inherit;
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
}

.lede,
main .muted {
  color: var(--mf-secondary);
}

/* Common workshop actions */
main .primary,
main .secondary,
main .quiet,
#play-build {
  border-radius: 999px;
}

main .primary {
  border-color: var(--mf-active);
  background: var(--mf-active);
  color: var(--mf-on-active);
}

main .primary:hover {
  border-color: var(--mf-ink);
  background: var(--mf-ink);
}

main .secondary {
  border-color: var(--mf-rule);
  background: transparent;
  color: var(--mf-ink);
}

main .quiet {
  color: var(--mf-ink);
}

main .secondary:hover,
main .quiet:hover {
  background: var(--mf-control);
}

/* Garage and collection */
.section-title {
  border-top-color: var(--mf-rule);
}

.section-title h2 {
  color: var(--mf-ink);
  font-weight: 540;
  letter-spacing: -.035em;
}

.section-title > span {
  color: var(--mf-secondary);
  font-family: var(--mf-mono);
}

.build-card,
.build-card[data-legacy="true"] {
  border-color: var(--mf-rule);
  border-radius: 3px;
  background: var(--mf-paper);
}

.build-card:hover,
.build-card[data-legacy="true"]:hover {
  border-color: var(--mf-secondary);
}

.build-picture,
.bike-card img {
  background: #eee;
}

.build-picture .tag,
.build-card[data-legacy="true"] .build-picture .tag {
  border-color: var(--mf-rule);
  border-radius: 999px;
  background: #fafbf8eb;
  color: var(--mf-ink);
  backdrop-filter: blur(8px);
}

.build-info {
  border-top: 1px solid var(--mf-rule);
}

.build-info h3,
.bike-card h2 {
  color: var(--mf-ink);
  font-weight: 540;
  letter-spacing: -.035em;
}

.build-info p,
.bike-card p,
.build-actions small {
  color: var(--mf-secondary);
}

#garage .build-actions .quiet {
  border-bottom-color: var(--mf-rule);
  color: var(--mf-ink);
}

.new-card {
  border-color: var(--mf-rule);
  border-radius: 3px;
  background: var(--mf-control);
  color: var(--mf-secondary);
}

.new-card:hover {
  border-color: var(--mf-secondary);
  color: var(--mf-ink);
}

.new-card b {
  color: var(--mf-ink);
}

.garage-footer {
  border-top-color: var(--mf-rule);
}

.garage-footer > span {
  color: var(--mf-ink);
  font-family: var(--mf-font);
  font-style: normal;
  font-weight: 540;
  letter-spacing: -.035em;
}

.garage-footer p {
  color: var(--mf-secondary);
}

.bike-card {
  border-top-color: var(--mf-rule);
}

.bike-card img {
  border-radius: 2px;
}

/* Studio header and warm showroom stage */
#studio {
  --studio-paper: #fbfaf5;
  --studio-paper-raised: #fffef9;
  --studio-stage: #eeece6;
  --studio-stage-edge: #e3e2dc;
  --studio-olive: #71834f;
}

#studio .studio-top {
  border-bottom-color: var(--mf-rule);
  background: var(--studio-paper-raised);
  box-shadow: 0 1px 0 #fff inset;
}

#studio .build-title {
  border-left-color: var(--mf-rule);
}

#studio .build-title input {
  color: var(--mf-ink);
  font-weight: 620;
  letter-spacing: -.035em;
}

#studio .build-title span,
#studio #save-status {
  color: var(--mf-secondary);
}

#studio #save-status {
  font-family: var(--mf-mono);
  letter-spacing: .025em;
}

#studio .studio-top #save {
  border-color: var(--mf-rule);
  border-radius: 999px;
  background: transparent;
  color: var(--mf-ink);
}

#studio .studio-top #save:hover {
  background: var(--mf-control);
}

#studio #play-build {
  border-color: var(--mf-active);
  background: var(--mf-active);
  color: var(--mf-on-active);
  box-shadow: 0 5px 16px #2932291c;
}

#studio #play-build:hover:not(:disabled) {
  border-color: var(--mf-ink);
  background: var(--mf-ink);
}

#studio .view {
  background:
    radial-gradient(ellipse at 47% 72%, #f9f8f3 0, var(--studio-stage) 58%, var(--studio-stage-edge) 100%);
  box-shadow: inset -1px 0 0 #d4d5ce;
}

#studio .view-label h2 {
  color: var(--mf-ink);
  font-weight: 610;
  letter-spacing: -.06em;
}

#studio .view-label .eyebrow {
  color: #66705f;
}

#studio .view-label p:last-child,
#studio #focus-caption {
  color: var(--mf-secondary) !important;
}

#studio .view-tools button {
  border-color: #bfc7bb;
  border-radius: 999px;
  background: #fffef9e8;
  color: var(--mf-ink);
  font-weight: 550;
  backdrop-filter: blur(8px);
  box-shadow: 0 3px 12px #2c342b0a;
}

#studio .view-tools button:hover:not(:disabled) {
  border-color: #929d8e;
  background: var(--studio-paper-raised);
}

#studio .view-tools button:active {
  border-color: var(--mf-active);
  background: var(--mf-active);
  color: var(--mf-on-active);
}

#studio .view-tools #camera {
  border-color: #8e998a;
  font-weight: 650;
}

#studio .view-tools :is(#undo, #redo):disabled {
  background: #f1f0eb99;
  box-shadow: none;
}

#studio .gesture {
  color: var(--mf-secondary);
  font-family: var(--mf-mono);
  letter-spacing: .16em;
}

#studio #load-status {
  background: #fafbf8eb;
  color: var(--mf-ink);
}

/* Workshop side rail and core finish editor */
#studio .workspace > aside {
  border-left-color: var(--mf-rule);
  background: var(--studio-paper);
  color: var(--mf-ink);
  box-shadow: -12px 0 34px #30362e08;
  scrollbar-color: #a4aa9f transparent;
}

#studio .aside-title h2 {
  color: var(--mf-ink);
  font-weight: 610;
  letter-spacing: -.055em;
}

.edit-tabs {
  border-color: transparent;
  border-radius: 999px;
  background: var(--mf-control);
}

.edit-tabs button {
  border-color: transparent;
  border-radius: 999px;
  color: var(--mf-secondary);
}

.edit-tabs button:hover:not([aria-selected="true"]) {
  background: var(--mf-paper);
  color: var(--mf-ink);
}

#studio .edit-tabs button[aria-selected="true"][role="tab"] {
  border-color: var(--mf-active);
  background: var(--mf-active);
  color: var(--mf-on-active);
}

#finish-editor .row h3 {
  color: var(--mf-ink);
  font-weight: 550;
}

#finish-editor .row > span {
  color: var(--mf-secondary);
  font-family: var(--mf-mono);
  letter-spacing: .07em;
}

#finish-editor .swatches > button {
  border-color: var(--mf-paper);
  outline-color: var(--mf-rule);
}

#finish-editor .swatches > button:hover {
  outline-color: var(--mf-secondary);
}

#finish-editor .swatches > button.active {
  outline: 2px solid var(--mf-active);
}

#finish-editor .custom-color {
  border-color: var(--mf-rule);
  color: var(--mf-ink);
}

#finish-editor .finish-options {
  border-radius: 999px;
  background: var(--mf-control);
}

#finish-editor .finish-options button {
  border-color: transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--mf-secondary);
}

#finish-editor .finish-options button:hover:not(.active) {
  background: var(--mf-paper);
  color: var(--mf-ink);
}

#finish-editor .finish-options button.active {
  border-color: var(--mf-active);
  background: var(--mf-active);
  color: var(--mf-on-active);
}

#finish-editor > .muted,
#finish-editor summary,
#finish-editor .field {
  color: var(--mf-secondary);
}

#finish-editor details {
  border-top-color: var(--mf-rule);
}

#finish-editor .field input[type="range"] {
  accent-color: var(--mf-active);
}

#finish-editor #factory {
  border-color: var(--mf-rule);
  background: transparent;
  color: var(--mf-ink);
}

#finish-editor #factory:hover {
  background: var(--mf-control);
}

.build-note {
  border-top-color: var(--mf-rule);
  color: var(--mf-ink);
}

.build-note strong {
  color: var(--mf-secondary);
}

#notice {
  border: 1px solid var(--mf-active);
  border-radius: 8px;
  background: var(--mf-active);
  color: var(--mf-on-active);
  box-shadow: 0 8px 28px #23292324;
}
