/* Keep the product, editable name and actions in separate, stable rows. */
.appbar { grid-template-columns: minmax(180px, 230px) minmax(0, 1fr); gap: 16px 28px; padding: 20px 24px; }
.app-brand { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.app-brand__logo { display: block; width: 210px; max-width: 100%; height: auto; }
.app-brand__version { color: #58736f; font-size: 11px; font-weight: 700; line-height: 1.2; }
.app-brand__product { font-size: 14px; white-space: normal; }
.project-name { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; width: 100%; min-width: 0; }
.project-name label { grid-column: 1 / -1; width: auto; }
.project-name input { width: 100%; min-width: 0; }
.char-count { white-space: nowrap; }
.app-actions { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 10px; justify-self: stretch; justify-content: flex-end; min-width: 0; width: 100%; }
.app-actions .save-state { flex: 1 0 100%; width: 100%; margin: 0; text-align: right; white-space: normal; overflow-wrap: anywhere; }
.app-actions .btn { flex: 0 0 auto; white-space: normal; min-height: 44px; }
#regenerateShift { min-width: 260px; min-height: 52px; justify-content: center; color: #fff; background: #b74b16; border: 2px solid #963a0c; padding: 13px 32px; font-size: 16px; font-weight: 800; box-shadow: 0 5px 14px #b74b1629; }
#regenerateShift:hover { background: #963a0c; }
#regenerateShift:focus-visible { outline: 3px solid #e7a53e; outline-offset: 3px; }
@media (max-width: 600px) {
  .appbar { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
  .app-brand { grid-column: 1; grid-row: 1; }
  .app-brand__logo { width: 195px; }
  .project-name { grid-column: 1; grid-row: 2; }
  .app-actions { grid-column: 1; grid-row: 3; justify-content: flex-start; }
  .app-actions .save-state { text-align: left; }
  .app-actions .btn { flex: 1 1 140px; }
  #regenerateShift { min-width: 0; }
}
