:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f4f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f4f7fb;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd8e5;
  border-radius: 10px;
  background: #ffffff;
  color: #172033;
}

input,
select {
  min-height: 44px;
  padding: 0.7rem 0.8rem;
}

textarea {
  min-height: 90px;
  padding: 0.75rem 0.8rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #5977ac;
  outline: 3px solid rgba(48, 94, 181, 0.14);
}

[aria-invalid="true"] {
  border-color: #b34141;
}

.app-shell {
  min-height: 100vh;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid #dce3ee;
  background: #ffffff;
}

.eyebrow,
.workflow-kicker,
.screen-step {
  margin: 0;
  color: #53627a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

.app-subtitle {
  max-width: 720px;
  margin-bottom: 0;
  color: #5d6a7e;
  line-height: 1.55;
}

.project-summary {
  flex: 0 0 auto;
  min-width: 220px;
  padding: 0.9rem 1rem;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  background: #f8fafc;
}

.project-summary-label,
.project-summary-state {
  display: block;
  color: #6b778c;
  font-size: 0.76rem;
}

.project-summary strong {
  display: block;
  margin: 0.2rem 0;
  font-size: 0.98rem;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  min-height: calc(100vh - 118px);
}

.workflow-sidebar {
  padding: 1.5rem 1rem;
  border-right: 1px solid #dce3ee;
  background: #ffffff;
}

.workflow-heading {
  padding: 0 0.75rem 1rem;
}

.workflow-help {
  margin: 0.55rem 0 0;
  color: #6b778c;
  font-size: 0.84rem;
  line-height: 1.5;
}

.workflow-nav {
  display: grid;
  gap: 0.42rem;
}

.workflow-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.workflow-step:hover {
  background: #f4f7fb;
}

.workflow-step:focus-visible {
  outline: 3px solid rgba(48, 94, 181, 0.22);
  outline-offset: 2px;
}

.workflow-step.is-active {
  border-color: #cbd8ee;
  background: #eef4ff;
}

.step-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8edf5;
  color: #53627a;
  font-size: 0.78rem;
  font-weight: 800;
}

.workflow-step.is-active .step-number {
  background: #243b67;
  color: #ffffff;
}

.step-copy {
  min-width: 0;
}

.step-copy strong,
.step-copy small {
  display: block;
}

.step-copy strong {
  font-size: 0.91rem;
}

.step-copy small {
  margin-top: 0.22rem;
  color: #7a8799;
  font-size: 0.74rem;
}

.screen-area {
  width: 100%;
  max-width: 1120px;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.workflow-screen[hidden] {
  display: none;
}

.screen-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid #dce3ee;
}

.screen-heading p:not(.screen-step) {
  max-width: 760px;
  margin-bottom: 0;
  color: #647086;
  line-height: 1.6;
}

.screen-step {
  margin-bottom: 0.5rem;
}

.status-badge {
  flex: 0 0 auto;
  padding: 0.4rem 0.65rem;
  border: 1px solid #d5dce7;
  border-radius: 999px;
  background: #ffffff;
  color: #647086;
  font-size: 0.75rem;
  font-weight: 700;
}

.placeholder-card,
.phase-note,
.setup-form {
  margin-top: 1.5rem;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  background: #ffffff;
}

.placeholder-card {
  padding: 1.4rem;
  border-style: dashed;
}

.placeholder-card strong {
  display: block;
  margin-bottom: 0.45rem;
}

.placeholder-card p {
  margin-bottom: 0;
  color: #66748a;
  line-height: 1.6;
}

.phase-note {
  display: flex;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  background: #f8fafc;
  color: #5f6f86;
  font-size: 0.84rem;
  line-height: 1.5;
}

.phase-note strong {
  color: #34425a;
}

.setup-form {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.field-group {
  min-width: 0;
}

.field-span-2 {
  grid-column: span 2;
}

.field-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.field-help,
.field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.4;
}

.field-help {
  color: #768399;
}

.field-error {
  min-height: 1.05rem;
  color: #a63737;
  font-weight: 600;
}

.form-error-summary {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e1b4b4;
  border-radius: 10px;
  background: #fff7f7;
  color: #7f2929;
}

.form-error-summary strong,
.form-error-summary span {
  display: block;
}

.form-error-summary span {
  margin-top: 0.25rem;
  font-size: 0.84rem;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e1e6ee;
}

.button {
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 9px;
  font-weight: 750;
  cursor: pointer;
}

.button-primary {
  border: 1px solid #243b67;
  background: #243b67;
  color: #ffffff;
}

.button-primary:hover {
  background: #1c3158;
}

.button-secondary {
  border: 1px solid #c8d1df;
  background: #ffffff;
  color: #394860;
}

.button-secondary:hover {
  background: #f5f7fa;
}

@media (max-width: 860px) {
  .app-header {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
  }

  .project-summary {
    min-width: 0;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .workflow-sidebar {
    border-right: 0;
    border-bottom: 1px solid #dce3ee;
  }

  .workflow-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-area {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .app-header,
  .workflow-sidebar,
  .screen-area {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .workflow-nav {
    grid-template-columns: 1fr;
  }

  .screen-heading,
  .phase-note,
  .form-actions {
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }
}


.storage-warning {
  display: grid;
  gap: 0.25rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #d7a84b;
  border-radius: 10px;
  background: #fffaf0;
  color: #6f531d;
  line-height: 1.45;
}

.storage-warning[hidden] {
  display: none;
}

.storage-warning strong {
  color: #5e4517;
}

.storage-warning span,
.storage-warning small {
  display: block;
}


.backup-warning,
.backup-feedback {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  line-height: 1.55;
}

.backup-warning {
  border: 1px solid #d7a84b;
  background: #fffaf0;
  color: #6f531d;
}

.backup-warning strong,
.backup-warning span {
  display: block;
}

.backup-warning span {
  margin-top: 0.25rem;
}

.backup-feedback {
  display: grid;
  gap: 0.25rem;
  border: 1px solid #cbd8ee;
  background: #f6f9ff;
  color: #34425a;
}

.backup-feedback[hidden] {
  display: none;
}

.backup-feedback.is-success {
  border-color: #a8c9b2;
  background: #f3faf5;
  color: #315d3b;
}

.backup-feedback.is-error {
  border-color: #e1b4b4;
  background: #fff7f7;
  color: #7f2929;
}

.backup-feedback.is-info {
  border-color: #cbd8ee;
  background: #f6f9ff;
}

.backup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.backup-card {
  padding: 1.25rem;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  background: #ffffff;
}

.backup-card-kicker {
  margin-bottom: 0.4rem;
  color: #53627a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.backup-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}

.backup-card p:not(.backup-card-kicker) {
  min-height: 3.2rem;
  margin-bottom: 1rem;
  color: #66748a;
  line-height: 1.55;
}

.button-danger {
  border: 1px solid #a53b3b;
  background: #ffffff;
  color: #8a3030;
}

.button-danger:hover {
  background: #fff5f5;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 640px) {
  .backup-grid {
    grid-template-columns: 1fr;
  }

  .backup-card p:not(.backup-card-kicker) {
    min-height: 0;
  }

  .backup-card .button {
    width: 100%;
  }
}


.prompt-workflow {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.workflow-card {
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid #dce3ee;
  border-radius: 12px;
  background: #ffffff;
}

.workflow-card-intro {
  background: #f8fafc;
}

.workflow-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.workflow-card-heading h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
}

.workflow-card-heading p:not(.backup-card-kicker) {
  max-width: 720px;
  margin-bottom: 0;
  color: #66748a;
  line-height: 1.55;
}

.mini-step-list {
  margin: 0.75rem 0 0;
  padding-left: 1.3rem;
  color: #53627a;
  line-height: 1.65;
}

.prompt-jump-link {
  color: #244f88;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

.prompt-jump-link span {
  white-space: nowrap;
}

.prompt-jump-link::after {
  content: " ↓";
  font-weight: 800;
  text-decoration: none;
}

.prompt-jump-link:hover {
  color: #173a69;
}

.prompt-jump-link:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(48, 94, 181, 0.2);
  outline-offset: 2px;
}

.prompt-card {
  scroll-margin-top: 1rem;
  border-left: 4px solid #315f9d;
}

.prompt-card:target {
  border-color: #315f9d;
  background: #fbfdff;
  box-shadow: 0 0 0 3px rgba(49, 95, 157, 0.14);
}

.prompt-code-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin: 0 0 0.55rem;
  padding: 0.34rem 0.65rem;
  border: 1px solid #a7bddc;
  border-radius: 999px;
  background: #edf4ff;
  color: #214b84;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.prompt-card .workflow-card-heading h3 {
  font-size: 1.18rem;
}

.field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.prompt-textarea,
.output-textarea {
  min-height: 320px;
  line-height: 1.5;
}

.prompt-textarea {
  background: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.output-textarea {
  min-height: 360px;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.action-status {
  color: #5f6f86;
  font-size: 0.8rem;
  line-height: 1.4;
}

.inline-feedback {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid #cbd8ee;
  border-radius: 10px;
  background: #f6f9ff;
  color: #34425a;
  line-height: 1.5;
}

.inline-feedback[hidden] {
  display: none;
}

.inline-feedback strong,
.inline-feedback span {
  display: block;
}

.inline-feedback.is-success {
  border-color: #a8c9b2;
  background: #f3faf5;
  color: #315d3b;
}

.inline-feedback.is-error {
  border-color: #e1b4b4;
  background: #fff7f7;
  color: #7f2929;
}

.inline-feedback.is-info {
  border-color: #cbd8ee;
  background: #f6f9ff;
}

.prompt-save-actions {
  align-items: center;
}

@media (max-width: 640px) {
  .workflow-card-heading,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .workflow-card-heading .button,
  .button-row .button {
    width: 100%;
  }

  .prompt-textarea,
  .output-textarea {
    min-height: 280px;
  }
}


.episode-production-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.episode-production-header h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
}

.episode-production-header p:not(.backup-card-kicker) {
  max-width: 720px;
  margin-bottom: 0;
  color: #66748a;
  line-height: 1.55;
}

.episode-production-progress {
  flex: 0 0 auto;
  padding: 0.45rem 0.7rem;
  border: 1px solid #d5dce7;
  border-radius: 999px;
  background: #f8fafc;
  color: #53627a;
  font-size: 0.78rem;
  font-weight: 700;
}

.episode-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.optional-label {
  color: #7a8799;
  font-size: 0.78rem;
  font-weight: 500;
}

@media (max-width: 640px) {
  .episode-production-header {
    align-items: stretch;
    flex-direction: column;
  }

  .episode-production-progress {
    align-self: flex-start;
  }

  .episode-input-grid {
    grid-template-columns: 1fr;
  }

  .episode-input-grid .field-span-2 {
    grid-column: auto;
  }
}


.episode-production-overview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid #d7a84b;
  border-radius: 12px;
  background: #fffaf0;
  color: #6f531d;
}

.episode-production-overview[data-state="complete"] {
  border-color: #a8c9b2;
  background: #f3faf5;
  color: #315d3b;
}

.episode-production-overview[data-state="empty"] {
  border-color: #cbd8ee;
  background: #f6f9ff;
  color: #53627a;
}

.episode-production-overview-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 900;
}

.episode-production-overview strong,
.episode-production-overview span,
.episode-production-overview small {
  display: block;
}

.episode-production-overview span {
  margin-top: 0.22rem;
  line-height: 1.5;
}

.episode-production-remaining {
  margin-top: 0.45rem;
  font-weight: 750;
}

.episode-production-meta {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
}

.episode-current-status,
.episode-production-progress {
  flex: 0 0 auto;
  padding: 0.45rem 0.7rem;
  border: 1px solid #d5dce7;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.episode-current-status.is-pending,
.episode-production-progress.is-incomplete {
  border-color: #d7a84b;
  background: #fffaf0;
  color: #6f531d;
}

.episode-current-status.is-produced,
.episode-production-progress.is-complete {
  border-color: #a8c9b2;
  background: #f3faf5;
  color: #315d3b;
}

#episode-production-select.is-pending {
  border-color: #d7a84b;
  background: #fffdf7;
}

#episode-production-select.is-produced {
  border-color: #8fbd9b;
  background: #f8fcf9;
}

@media (max-width: 640px) {
  .episode-production-overview {
    grid-template-columns: 1fr;
  }

  .episode-production-meta {
    justify-items: start;
  }
}


#episode-production-save-status.is-saved,
#episode-production-save-status.is-warning {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  font-weight: 750;
}

#episode-production-save-status.is-saved {
  border: 1px solid #a8c9b2;
  background: #f3faf5;
  color: #315d3b;
}

#episode-production-save-status.is-warning {
  border: 1px solid #d7a84b;
  background: #fffaf0;
  color: #6f531d;
}


.visual-production-overview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid #d7a84b;
  border-radius: 12px;
  background: #fffaf0;
  color: #6f531d;
}

.visual-production-overview[data-state="complete"] {
  border-color: #a8c9b2;
  background: #f3faf5;
  color: #315d3b;
}

.visual-production-overview[data-state="empty"] {
  border-color: #cbd8ee;
  background: #f6f9ff;
  color: #53627a;
}

.visual-production-overview-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 900;
}

.visual-production-overview strong,
.visual-production-overview span,
.visual-production-overview small {
  display: block;
}

.visual-production-overview span {
  margin-top: 0.22rem;
  line-height: 1.5;
}

.visual-production-remaining {
  margin-top: 0.45rem;
  font-weight: 750;
}

.visual-production-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.visual-production-header h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
}

.visual-production-header p:not(.backup-card-kicker) {
  max-width: 720px;
  margin-bottom: 0;
  color: #66748a;
  line-height: 1.55;
}

.visual-production-meta {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
}

.visual-current-status,
.visual-production-progress {
  flex: 0 0 auto;
  padding: 0.45rem 0.7rem;
  border: 1px solid #d5dce7;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.visual-current-status.is-pending,
.visual-production-progress.is-incomplete {
  border-color: #d7a84b;
  background: #fffaf0;
  color: #6f531d;
}

.visual-current-status.is-saved,
.visual-production-progress.is-complete {
  border-color: #a8c9b2;
  background: #f3faf5;
  color: #315d3b;
}

.visual-current-status.is-blocked {
  border-color: #e1b4b4;
  background: #fff7f7;
  color: #7f2929;
}

#visual-production-select.is-pending {
  border-color: #d7a84b;
  background: #fffdf7;
}

#visual-production-select.is-saved {
  border-color: #8fbd9b;
  background: #f8fcf9;
}

#visual-production-select.is-blocked {
  border-color: #d9a4a4;
  background: #fffafa;
}

#visual-production-save-status.is-saved,
#visual-production-save-status.is-warning {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  font-weight: 750;
}

#visual-production-save-status.is-saved {
  border: 1px solid #a8c9b2;
  background: #f3faf5;
  color: #315d3b;
}

#visual-production-save-status.is-warning {
  border: 1px solid #d7a84b;
  background: #fffaf0;
  color: #6f531d;
}

@media (max-width: 640px) {
  .visual-production-overview {
    grid-template-columns: 1fr;
  }

  .visual-production-header {
    align-items: stretch;
    flex-direction: column;
  }

  .visual-production-meta {
    justify-items: start;
  }
}


.backup-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.production-package-preview-card {
  margin-top: 1rem;
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid #dce3ee;
  border-radius: 12px;
  background: #ffffff;
}

.production-package-preview-card .workflow-card-heading {
  margin-bottom: 1rem;
}

.production-package-preview {
  min-height: 520px;
}

.production-package-preview-actions {
  justify-content: flex-start;
}

@media (max-width: 640px) {
  .backup-card-actions {
    flex-direction: column;
  }

  .backup-card-actions .button,
  .production-package-preview-actions .button {
    width: 100%;
  }

  .production-package-preview-actions {
    align-items: stretch;
    flex-direction: column;
  }
}


.publishing-package-overview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid #d7a84b;
  border-radius: 12px;
  background: #fffaf0;
  color: #6f531d;
}

.publishing-package-overview[data-state="complete"] {
  border-color: #a8c9b2;
  background: #f3faf5;
  color: #315d3b;
}

.publishing-package-overview[data-state="empty"] {
  border-color: #cbd8ee;
  background: #f6f9ff;
  color: #53627a;
}

.publishing-package-overview-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 900;
}

.publishing-package-overview strong,
.publishing-package-overview span,
.publishing-package-overview small {
  display: block;
}

.publishing-package-overview span {
  margin-top: 0.22rem;
  line-height: 1.5;
}

.publishing-package-remaining {
  margin-top: 0.45rem;
  font-weight: 750;
}

.publishing-package-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.publishing-package-header h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
}

.publishing-package-header p:not(.backup-card-kicker) {
  max-width: 720px;
  margin-bottom: 0;
  color: #66748a;
  line-height: 1.55;
}

.publishing-package-meta {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
}

.publishing-current-status,
.publishing-package-progress {
  flex: 0 0 auto;
  padding: 0.45rem 0.7rem;
  border: 1px solid #d5dce7;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.publishing-current-status.is-pending,
.publishing-package-progress.is-incomplete {
  border-color: #d7a84b;
  background: #fffaf0;
  color: #6f531d;
}

.publishing-current-status.is-saved,
.publishing-package-progress.is-complete {
  border-color: #a8c9b2;
  background: #f3faf5;
  color: #315d3b;
}

.publishing-current-status.is-blocked {
  border-color: #e1b4b4;
  background: #fff7f7;
  color: #7f2929;
}

#publishing-package-select.is-pending {
  border-color: #d7a84b;
  background: #fffdf7;
}

#publishing-package-select.is-saved {
  border-color: #8fbd9b;
  background: #f8fcf9;
}

#publishing-package-select.is-blocked {
  border-color: #d9a4a4;
  background: #fffafa;
}

#publishing-package-save-status.is-saved,
#publishing-package-save-status.is-warning {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  font-weight: 750;
}

#publishing-package-save-status.is-saved {
  border: 1px solid #a8c9b2;
  background: #f3faf5;
  color: #315d3b;
}

#publishing-package-save-status.is-warning {
  border: 1px solid #d7a84b;
  background: #fffaf0;
  color: #6f531d;
}

@media (max-width: 640px) {
  .publishing-package-overview {
    grid-template-columns: 1fr;
  }

  .publishing-package-header {
    align-items: stretch;
    flex-direction: column;
  }

  .publishing-package-meta {
    justify-items: start;
  }
}


.project-recovery-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #cbd8ee;
  border-radius: 12px;
  background: #f6f9ff;
}

.project-recovery-card div {
  min-width: 0;
}

.project-recovery-card strong,
.project-recovery-card span {
  display: block;
}

.project-recovery-card strong {
  margin-bottom: 0.25rem;
  color: #243b67;
}

.project-recovery-card span {
  color: #5f6f87;
  line-height: 1.5;
}

.project-recovery-card .button {
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .project-recovery-card {
    align-items: stretch;
    flex-direction: column;
  }

  .project-recovery-card .button {
    width: 100%;
  }
}


/* Phase 6 UX polish */

@media (min-width: 861px) {
  .workflow-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    max-height: 100vh;
    overflow-y: auto;
  }
}

.workflow-step.is-status-complete:not(.is-active) .step-number {
  background: #e8f5ec;
  color: #2f6a3d;
}

.workflow-step.is-status-in-progress:not(.is-active) .step-number {
  background: #fff2d8;
  color: #765616;
}

.workflow-step.is-status-complete .step-copy small {
  color: #3f7a4c;
  font-weight: 700;
}

.workflow-step.is-status-in-progress .step-copy small {
  color: #8a651b;
  font-weight: 700;
}

.status-badge.is-status-complete {
  border-color: #a8c9b2;
  background: #f3faf5;
  color: #315d3b;
}

.status-badge.is-status-in-progress {
  border-color: #d7a84b;
  background: #fffaf0;
  color: #6f531d;
}

.status-badge.is-status-not-started {
  border-color: #d5dce7;
  background: #ffffff;
  color: #647086;
}

.quick-start-help {
  margin-top: 1rem;
  border: 1px solid #cbd8ee;
  border-radius: 12px;
  background: #ffffff;
}

.quick-start-help summary {
  padding: 0.9rem 1rem;
  color: #2f4264;
  font-weight: 800;
  cursor: pointer;
}

.quick-start-help[open] summary {
  border-bottom: 1px solid #e1e6ee;
}

.quick-start-help ol,
.quick-start-help p {
  margin-left: 1rem;
  margin-right: 1rem;
  color: #5f6f86;
  line-height: 1.55;
}

.quick-start-help ol {
  padding-left: 1.25rem;
}

.quick-start-help li + li {
  margin-top: 0.45rem;
}

.quick-start-help p {
  margin-bottom: 1rem;
}

@media (max-width: 860px) {
  .workflow-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
}
