.gp-page {
  min-height: 100vh;
  padding-bottom: 28px;
  background: #f4f7fb;
  color: #17243a;
}

.gp-panel input:disabled,
.gp-panel textarea:disabled {
  color: #526176;
  cursor: not-allowed;
  opacity: .78;
}

.gp-primary:disabled,
.gp-upload.disabled {
  cursor: not-allowed;
  filter: saturate(.55);
  opacity: .72;
}

.gp-nav {
  color: #17243a;
  background: rgba(248, 250, 253, .96);
  border-bottom: 1px solid #dfe7f1;
}

.gp-hero {
  position: relative;
  margin: 10px 0 14px;
  min-height: 210px;
  overflow: hidden;
  border-radius: 8px;
  background: #10243d;
  color: #fff;
}

.gp-illustrated-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.gp-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 22, 42, .92) 0%, rgba(8, 22, 42, .68) 47%, rgba(8, 22, 42, .14) 100%);
}

.gp-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 540px;
  padding: 34px 22px;
}

.gp-hero small,
.gp-panel header small,
.gp-status small {
  display: block;
  color: #2f80ed;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.gp-hero small {
  color: #a8d8ff;
}

.gp-hero b {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  line-height: 1.2;
}

.gp-hero p {
  max-width: 470px;
  margin: 10px 0 0;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  line-height: 1.7;
}

.gp-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.gp-steps li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #fff;
  color: #6b7b90;
  font-size: 12px;
}

.gp-steps i {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #e9eef5;
  color: #526176;
  font-style: normal;
  font-weight: 800;
}

.gp-steps span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-steps li.active,
.gp-steps li.done {
  border-color: rgba(47, 128, 237, .24);
  color: #1859a8;
}

.gp-steps li.active i,
.gp-steps li.done i {
  background: #2f80ed;
  color: #fff;
}

.gp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr);
  gap: 14px;
  align-items: start;
}

.gp-create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 14px;
  align-items: start;
}

.gp-layout > div {
  display: grid;
  gap: 14px;
}

.gp-complete-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: 14px;
  align-items: start;
}

.gp-panel,
.gp-status {
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 10px 26px rgba(43, 66, 96, .055);
}

.gp-panel {
  padding: 14px;
}

.gp-complete {
  margin: 10px 0 14px;
  padding: 16px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(43, 66, 96, .055);
}

.gp-complete-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.gp-complete-head small {
  display: block;
  color: #1f9d64;
  font-size: 11px;
  font-weight: 800;
}

.gp-complete-head h2 {
  margin: 2px 0 0;
  color: #17243a;
  font-size: 24px;
  line-height: 1.2;
}

.gp-complete-head p {
  margin: 8px 0 0;
  max-width: 640px;
  color: #6f7f94;
  font-size: 13px;
  line-height: 1.6;
}

.gp-complete-head > span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(47, 128, 237, .2);
  border-radius: 999px;
  background: #f2f8ff;
  color: #1859a8;
  font-size: 12px;
  font-weight: 800;
}

.gp-complete-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  align-items: stretch;
}

.gp-complete-actions {
  display: grid;
  gap: 10px;
  align-content: start;
}

.gp-main-action,
.gp-mobile-play-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: #1677ff;
  color: #fff;
  font-weight: 800;
}

.gp-main-action:nth-child(2) {
  background: #1f9d64;
}

.gp-main-action:nth-child(3),
.gp-mobile-play-button {
  background: #17365c;
}

.gp-complete-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.gp-info-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(43, 66, 96, .045);
}

.gp-info-card.wide {
  grid-column: span 2;
}

.gp-info-card b,
.gp-info-card strong {
  display: block;
  color: #17243a;
}

.gp-info-card strong {
  margin-top: 8px;
  font-size: 28px;
}

.gp-info-card p,
.gp-info-card small,
.gp-info-card li {
  color: #6f7f94;
  font-size: 12px;
  line-height: 1.55;
}

.gp-info-card ul,
.gp-info-card ol {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.gp-info-card li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.gp-info-card em {
  flex: 0 0 auto;
  font-style: normal;
  font-weight: 800;
}

.gp-info-card em.ok {
  color: #1f9d64;
}

.gp-info-card em.bad {
  color: #c0392b;
}

.gp-panel header,
.gp-status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gp-panel header {
  margin-bottom: 12px;
}

.gp-panel h2 {
  margin: 2px 0 0;
  color: #17243a;
  font-size: 15px;
  line-height: 1.35;
}

.gp-panel header > span {
  flex: 0 0 auto;
  max-width: 160px;
  padding: 5px 8px;
  border: 1px solid #dfe7f1;
  border-radius: 999px;
  color: #607086;
  font-size: 11px;
  text-align: right;
}

.gp-type-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.gp-type-grid button {
  min-height: 82px;
  padding: 10px;
  border: 1px solid #d9e2ee;
  border-radius: 8px;
  background: #f8fafd;
  color: #17243a;
  text-align: left;
}

.gp-type-grid button.active {
  border-color: #2f80ed;
  background: #eef6ff;
  box-shadow: inset 0 0 0 1px rgba(47, 128, 237, .18);
}

.gp-type-grid b,
.gp-type-grid small {
  display: block;
}

.gp-type-grid small {
  margin-top: 6px;
  color: #6f7f94;
  font-size: 11px;
  line-height: 1.45;
}

.gp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.gp-form-grid label,
.gp-chat-box {
  display: grid;
  gap: 6px;
}

.gp-form-grid label.wide {
  grid-column: 1 / -1;
}

.gp-form-grid span {
  color: #536479;
  font-size: 12px;
  font-weight: 700;
}

.gp-form-grid input,
.gp-form-grid select,
.gp-form-grid textarea,
.gp-chat-box textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d9e2ee;
  border-radius: 8px;
  background: #f8fafd;
  color: #17243a;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.gp-form-grid input,
.gp-form-grid select {
  height: 40px;
  padding: 0 10px;
}

.gp-form-grid textarea,
.gp-chat-box textarea {
  min-height: 82px;
  resize: vertical;
  padding: 10px;
  line-height: 1.55;
}

.gp-form-grid input:focus,
.gp-form-grid select:focus,
.gp-form-grid textarea:focus,
.gp-chat-box textarea:focus {
  border-color: #2f80ed;
  box-shadow: 0 0 0 3px rgba(47, 128, 237, .1);
}

.gp-primary,
.gp-chat-box button,
.gp-version-list button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: #1677ff;
  color: #fff;
  font-weight: 800;
}

.gp-primary {
  width: 100%;
  margin-top: 12px;
}

.gp-upload {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px dashed #a9bfd8;
  border-radius: 8px;
  background: #f7fbff;
  cursor: pointer;
}

.gp-upload b {
  color: #17365c;
}

.gp-upload small,
.gp-empty,
.gp-play-empty p,
.gp-message-list small,
.gp-version-list small,
.gp-version-list p {
  color: #6f7f94;
  font-size: 12px;
  line-height: 1.55;
}

.gp-asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.gp-asset-card {
  overflow: hidden;
  border: 1px solid #e1e8f1;
  border-radius: 8px;
  background: #fff;
}

.gp-asset-card img,
.gp-asset-card video,
.gp-file-chip {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  place-items: center;
  background: #eef3f8;
  color: #607086;
}

.gp-asset-card audio {
  width: 100%;
  padding: 18px 8px;
  background: #eef3f8;
}

.gp-asset-card footer,
.gp-version-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gp-asset-card footer {
  padding: 8px;
}

.gp-asset-card footer b {
  min-width: 0;
  overflow: hidden;
  color: #17243a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-asset-card footer button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #c0392b;
  font-size: 12px;
}

.gp-status {
  position: relative;
  margin: 0 0 14px;
  padding: 14px;
  overflow: hidden;
}

.gp-status div {
  min-width: 0;
}

.gp-status b {
  display: block;
  margin-top: 2px;
  color: #17243a;
}

.gp-status p {
  margin: 6px 0 0;
  color: #6f7f94;
  font-size: 12px;
}

.gp-status strong {
  color: #1677ff;
  font-size: 18px;
}

.gp-status > span {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf5;
}

.gp-status > span i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1677ff;
}

.gp-status.failed strong,
.gp-status.failed small {
  color: #c0392b;
}

.gp-play-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.gp-desktop-phone {
  padding: 12px;
  border: 1px solid #c8d5e5;
  border-radius: 22px;
  background: #17243a;
  box-shadow: 0 18px 38px rgba(23, 36, 58, .2);
}

.gp-complete-phone {
  max-width: 820px;
}

.gp-phone-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 24px;
  color: rgba(255,255,255,.72);
  font-size: 11px;
}

.gp-phone-bar i {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.38);
}

.gp-play-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 20px;
  border: 1px solid #e1e8f1;
  border-radius: 8px;
  background: #f8fafd;
  text-align: center;
}

.gp-play-empty b {
  color: #17243a;
}

.gp-message-list {
  display: grid;
  max-height: 300px;
  overflow: auto;
  gap: 8px;
  padding-right: 2px;
}

.gp-message-list article {
  padding: 10px;
  border-radius: 8px;
  background: #f3f7fd;
}

.gp-message-list article.assistant {
  background: #eef6ff;
}

.gp-message-list p {
  margin: 4px 0 0;
  color: #17243a;
  font-size: 13px;
  line-height: 1.6;
}

.gp-chat-box {
  margin-top: 10px;
}

.gp-version-list {
  display: grid;
  gap: 10px;
}

.gp-version-list article {
  padding: 10px;
  border: 1px solid #e1e8f1;
  border-radius: 8px;
  background: #fff;
}

.gp-version-list article.published {
  border-color: rgba(39, 174, 96, .28);
  background: #f4fbf7;
}

.gp-version-list article > div:first-child {
  min-width: 0;
}

.gp-version-list b {
  display: block;
  color: #17243a;
}

.gp-version-list p {
  margin: 4px 0 0;
}

.gp-version-list article > div:last-child {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.gp-version-list button {
  min-width: 62px;
  padding: 0 10px;
}

.gp-version-list button + button {
  background: #eef3f8;
  color: #17365c;
}

.gp-segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.gp-segment button {
  min-height: 38px;
  border: 1px solid #d9e2ee;
  border-radius: 8px;
  background: #f8fafd;
  color: #17365c;
  font-weight: 800;
}

.gp-segment button.active {
  border-color: #1677ff;
  background: #eef6ff;
  color: #125ec9;
}

.gp-deploy-facts {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.gp-deploy-facts div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.gp-deploy-facts dt {
  color: #6f7f94;
  font-size: 12px;
  font-weight: 800;
}

.gp-deploy-facts dd {
  min-width: 0;
  margin: 0;
  color: #17243a;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.gp-deploy-facts img {
  width: 92px;
  height: 92px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  object-fit: contain;
}

.gp-deploy-tools,
.gp-zip-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.gp-deploy-tools button {
  min-height: 38px;
  border: 1px solid #d9e2ee;
  border-radius: 8px;
  background: #f8fafd;
  color: #17365c;
  font-weight: 800;
}

.gp-zip-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.gp-zip-options label {
  display: grid;
  gap: 6px;
}

.gp-zip-options span {
  color: #536479;
  font-size: 12px;
  font-weight: 700;
}

.gp-zip-options select {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 1px solid #d9e2ee;
  border-radius: 8px;
  background: #f8fafd;
  color: #17243a;
  font: inherit;
  font-size: 13px;
}

.gp-download-link {
  display: inline-flex;
  margin-top: 10px;
  color: #1677ff;
  font-size: 13px;
  font-weight: 800;
}

.gp-mobile-overlay[hidden] {
  display: none !important;
}

.gp-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  background: #07111f;
  color: #fff;
}

.gp-rotate-tip {
  text-align: center;
}

.gp-rotate-tip b {
  display: block;
  font-size: 14px;
}

.gp-rotate-tip p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 12px;
}

.gp-mobile-frame {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 96px);
  aspect-ratio: 16 / 9;
  margin: auto;
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.gp-mobile-overlay > button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #17243a;
  font-weight: 800;
}

@media (max-width: 920px) {
  .gp-layout,
  .gp-create-layout,
  .gp-complete-layout,
  .gp-form-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 640px) {
  .gp-page {
    padding-bottom: 16px;
  }

  .gp-hero {
    min-height: 190px;
  }

  .gp-hero b {
    font-size: 22px;
  }

  .gp-hero-copy {
    padding: 24px 16px;
  }

  .gp-hero-shade {
    background: linear-gradient(90deg, rgba(8, 22, 42, .92) 0%, rgba(8, 22, 42, .72) 68%, rgba(8, 22, 42, .22) 100%);
  }

  .gp-steps {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    scrollbar-width: none;
  }

  .gp-steps::-webkit-scrollbar {
    display: none;
  }

  .gp-steps li {
    min-width: 116px;
    min-height: 42px;
  }

  .gp-type-grid,
  .gp-asset-grid {
    grid-template-columns: 1fr;
  }

  .gp-panel header,
  .gp-complete-head,
  .gp-complete-stage,
  .gp-version-list article {
    align-items: stretch;
    flex-direction: column;
  }

  .gp-complete-stage,
  .gp-complete-grid,
  .gp-zip-options {
    grid-template-columns: 1fr;
  }

  .gp-info-card.wide {
    grid-column: auto;
  }

  .gp-desktop-phone {
    display: none;
  }

  .gp-panel header > span {
    max-width: none;
    text-align: left;
  }

  .gp-play-frame {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .gp-mobile-play-button {
    display: block;
  }
}
