.workspace-redesign .workspace-head {
  height: 42px;
  margin: 0;
  align-items: center;
  border-bottom: 1px solid #1d2d43;
}

.workspace-redesign .author-shell {
  padding-right: max(28px, calc((100vw - 1530px) / 2));
  padding-left: max(28px, calc((100vw - 1530px) / 2));
}

.workspace-redesign .workspace-kicker {
  font-size: 10px;
}

.workspace-redesign .workspace-head h1 {
  font-size: 14px;
}

.workspace-redesign .workspace-tabs {
  height: 46px;
  padding: 0;
  align-items: end;
  justify-content: center;
}

.workspace-redesign .workspace-tab {
  height: 40px;
  padding: 10px 14px;
  font-size: 11px;
}

@media (max-width: 900px) {
  .workspace-redesign .workspace-tabs {
    justify-content: flex-start;
  }
}

.workspace-redesign .production-flow {
  min-height: 0;
  height: max-content;
  padding: 20px 16px;
  position: sticky;
  top: 80px;
  align-self: start;
}

.workspace-redesign #stats-sidebar {
  top: 80px;
}

.production-flow-head {
  margin-bottom: 9px;
  color: #8498b3;
  font-size: 9px;
  letter-spacing: .7px;
}

.production-progress {
  height: 4px;
  margin: 0 7px 14px;
  overflow: hidden;
  border-radius: 4px;
  background: #1d2d43;
}

.production-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--workspace-cyan), #51dfa0);
  transition: width .25s;
}

.production-flow button b {
  font-size: 12px;
}

.production-flow button small {
  margin-top: 3px;
  font-size: 9px;
}

.production-flow button.done > i {
  border-color: #2ba969;
  background: #102b20;
  color: #52df91;
}

.production-flow button.done b {
  color: #e8fff2;
}

.production-flow > a.production-help-card {
  position: static;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 78px;
  margin: 16px 0 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--workspace-cyan) 58%, #29405d);
  border-radius: var(--r);
  background: linear-gradient(115deg, color-mix(in srgb, var(--workspace-cyan) 8%, #101c2d), #111d30 68%);
  color: #eef7ff;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.production-flow > a.production-help-card:hover {
  border-color: var(--workspace-cyan);
  background: linear-gradient(115deg, color-mix(in srgb, var(--workspace-cyan) 13%, #101c2d), #132136 68%);
  transform: translateY(-1px);
}

.production-help-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--workspace-cyan);
  color: #07111e;
  font-size: 15px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--workspace-cyan) 25%, transparent);
}

.production-help-copy { display: grid; gap: 3px; min-width: 0; }
.production-help-copy strong {
  color: #eef7ff;
  font-size: 16px !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
  letter-spacing: 0;
  text-transform: uppercase;
}
.production-help-copy small {
  color: #91a9c7;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: .01em;
}

/* Ability choices use one fixed visual axis regardless of icon artwork bounds. */
.workspace-redesign .abilities-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}
.workspace-redesign .abilities-row > .ability-empty-hint,
.workspace-redesign .abilities-row > span:only-child {
  grid-column: 1 / -1;
}
.workspace-redesign .ability-btn {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 82px;
  min-height: 82px;
  padding: 8px 6px;
  align-items: center;
  justify-content: center;
}
.workspace-redesign .ability-icon-wrap {
  margin-inline: auto;
}
.workspace-redesign .ability-btn .ability-name {
  width: 100%;
  min-height: 14px;
  line-height: 14px;
  text-align: center;
}

@media (max-width: 380px) {
  .workspace-redesign .abilities-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.workspace-redesign .production-flow .category-form-guide-launch {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  min-height: 78px;
  margin: 8px 0 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--guide-accent) 72%, #24415e);
  background: linear-gradient(115deg, color-mix(in srgb, var(--guide-accent) 9%, #101c2d), #111d30 68%);
}

.workspace-redesign .production-flow .category-form-guide-play {
  width: 40px;
  min-width: 40px;
  height: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
}

.workspace-redesign .production-flow .category-form-guide-launch::after {
  display: none;
}

.production-shot-help b {
  font-size: 11px;
}

.production-shot-help span {
  color: #9fb1c8;
  font-size: 10px;
}

.workspace-redesign .map-editor-shell {
  max-width: none;
  grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
  overflow: hidden;
}

.workspace-redesign .map-editor-sidebar {
  width: auto;
  min-width: 0;
}

.workspace-redesign .map-editor-canvas {
  min-width: 0;
}

.workspace-redesign .extra-status,
.workspace-redesign .map-side-help {
  font-size: 11px;
  line-height: 1.45;
}

.workspace-redesign .agents-grid {
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 7px;
  justify-items: stretch;
}

.workspace-redesign .agent-card {
  width: 100%;
  max-width: none;
  height: 48px;
  min-height: 48px;
  padding: 5px 8px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 8px;
  aspect-ratio: auto;
}

.workspace-redesign .agent-card img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 2px;
  border-radius: 8px;
  object-fit: contain;
  background: #16263a;
}

.workspace-redesign .agent-card span {
  max-width: none;
  font-size: 11px;
  text-align: left;
}

.workspace-redesign .shots-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, 72px);
  gap: 10px;
  align-items: start;
}

.workspace-redesign .production-map-gallery {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.workspace-redesign .production-map-gallery button {
  scroll-snap-align: none;
}

.workspace-redesign .site-update {
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .2px;
}

.workspace-redesign .shot-item {
  width: 72px;
  height: 72px;
}

.workspace-redesign .shot-item img,
.workspace-redesign .btn-add-shot {
  width: 72px;
  height: 72px;
}

@media (max-width: 1200px) {
  .workspace-redesign .map-editor-shell {
    grid-template-columns: 1fr;
  }
}

/* Header navigation keeps its desktop size but is allowed to shrink into an
   internal rail before it can widen the document. */
.workspace-redesign .site-sections {
  min-width: 0;
  flex: 0 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.workspace-redesign .site-sections::-webkit-scrollbar {
  display: none;
}

.workspace-redesign .site-sections a {
  flex: 0 0 auto;
}

/* Keep the compact author navigation inside phone and tablet viewports. The
   base mobile rules are repeated with redesign specificity because
   workspace-redesign.css is loaded after styles.css. */
@media (max-width: 980px) {
  .workspace-redesign .header {
    padding-inline: 10px;
  }

  .workspace-redesign .header .logo {
    flex: 0 0 32px;
    width: 32px;
    gap: 0 !important;
    font-size: 0;
    letter-spacing: 0;
  }

  .workspace-redesign .header .logo span {
    display: none;
  }

  .workspace-redesign .site-sections {
    flex: 1 1 auto;
  }
}
