.gph {
  --gph-bg: #eef3f8;
  --gph-surface: #ffffff;
  --gph-surface-soft: #f7f9fc;
  --gph-surface-muted: #f1f5fa;
  --gph-line: #cfdae8;
  --gph-line-strong: #9eb3cb;
  --gph-title: #10243e;
  --gph-text: #2b4462;
  --gph-muted: #5a708f;
  --gph-accent: #0f67d7;
  --gph-accent-2: #0f7b90;
  --gph-accent-soft: #e7f1ff;
  --gph-danger: #b73d2e;
  --gph-danger-soft: #fff2f0;
  --gph-success: #1d7c4b;
  --gph-success-soft: #e9f7ee;
  --gph-warning: #8a581b;
  --gph-warning-soft: #fff8eb;
  --gph-rail-bg: linear-gradient(170deg, #10243e 0%, #132f53 55%, #1a4b7d 100%);
  --gph-shadow-sm: 0 12px 28px rgba(16, 36, 62, 0.08);
  --gph-shadow-md: 0 20px 46px rgba(16, 36, 62, 0.14);
}

.gph__header {
  margin-bottom: 1.1rem;
}

.gph__header-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.gph__sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid #b3c7de;
  border-radius: 999px;
  padding: 0.32rem 0.68rem;
  background: #ecf4ff;
  color: #204d82;
  font-size: 0.79rem;
  font-weight: 700;
}

.gph__app {
  border: 1px solid var(--gph-line);
  border-radius: 24px;
  background: var(--gph-bg);
  padding: 0.8rem;
  box-shadow: var(--gph-shadow-sm);
}

.gph__loading {
  min-height: 3.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gph-muted);
  font-size: 0.92rem;
}

.gph__layout {
  display: grid;
  gap: 0.8rem;
}

.gph__rail,
.gph__body {
  border-radius: 18px;
  overflow: hidden;
}

.gph__rail {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--gph-rail-bg);
  color: #e9f2ff;
  padding: 0.84rem;
  display: grid;
  gap: 0.78rem;
}

.gph__eyebrow,
.gph-panel__eyebrow,
.gph-business-card__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gph__rail-intro .gph__eyebrow {
  color: #c4d9f5;
}

.gph-panel__eyebrow,
.gph-business-card__eyebrow,
.gph-step__eyebrow {
  color: #3e6599;
}

.gph__rail-intro h3 {
  margin: 0.22rem 0 0;
  color: #ffffff;
  font-size: 1.12rem;
  line-height: 1.3;
  font-weight: 800;
}

.gph__rail-intro p:last-child {
  margin: 0.4rem 0 0;
  color: #d6e5f9;
  font-size: 0.84rem;
  line-height: 1.45;
}

.gph__steps {
  display: grid;
  gap: 0.5rem;
}

.gph-step {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #f2f7ff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.66rem;
  align-items: start;
  padding: 0.62rem 0.66rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.gph-step:hover:not(:disabled),
.gph-step:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.52);
  transform: translateY(-1px);
  outline: none;
}

.gph-step:disabled {
  opacity: 0.72;
  cursor: wait;
}

.gph-step__index {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.gph-step__content {
  min-width: 0;
  display: grid;
  gap: 0.05rem;
}

.gph-step__eyebrow {
  display: block;
  margin: 0;
  color: #b9d0f0;
  font-size: 0.66rem;
}

.gph-step__content strong {
  display: block;
  margin: 0;
  color: inherit;
  font-size: 0.92rem;
  line-height: 1.25;
}

.gph-step__hint {
  display: block;
  color: #d0def4;
  font-size: 0.76rem;
  line-height: 1.35;
}

.gph-step__status {
  grid-column: 2;
  justify-self: start;
  border-radius: 999px;
  padding: 0.14rem 0.48rem;
  background: rgba(255, 255, 255, 0.16);
  color: #eef5ff;
  font-size: 0.68rem;
  font-weight: 700;
}

.gph-step[data-state="current"] {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.2);
}

.gph-step[data-state="current"] .gph-step__index {
  border-color: transparent;
  background: linear-gradient(145deg, #ffffff 0%, #d8e8ff 100%);
  color: #0f2f58;
}

.gph-step[data-state="current"] .gph-step__status {
  background: #dbe9ff;
  color: #1a4a7e;
}

.gph-step[data-state="complete"] .gph-step__status {
  background: #d5f2e3;
  color: #1b643e;
}

.gph-step[data-state="optional"] .gph-step__status {
  background: rgba(255, 255, 255, 0.14);
  color: #dce8fb;
}

.gph__rail-progress,
.gph__rail-note {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.6rem 0.68rem;
}

.gph__progress-track {
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.gph__progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8ed2ff 0%, #ffffff 100%);
  transition: width 0.2s ease;
}

.gph__progress-copy {
  display: grid;
  gap: 0.03rem;
}

.gph__progress-kicker,
.gph__progress-copy small {
  color: #c9daf1;
  font-size: 0.72rem;
}

.gph__progress-copy strong {
  color: #ffffff;
  font-size: 0.9rem;
}

.gph__progress-pill {
  margin-top: 0.34rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #f3f8ff;
  padding: 0.16rem 0.58rem;
  font-size: 0.72rem;
  font-weight: 700;
  width: fit-content;
}

.gph__rail-note {
  display: flex;
  align-items: flex-start;
  gap: 0.48rem;
  color: #dce8f9;
  font-size: 0.78rem;
  line-height: 1.4;
}

.gph__rail-note i {
  margin-top: 0.08rem;
  color: #ffffff;
}

.gph__body {
  border: 1px solid var(--gph-line);
  background: var(--gph-surface);
  padding: 0.86rem;
}

.gph-alert {
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  margin-bottom: 0.8rem;
  border: 1px solid #e6cfab;
  background: var(--gph-warning-soft);
  color: var(--gph-warning);
  font-size: 0.85rem;
  line-height: 1.45;
}

.gph-alert--info,
.gph-alert--muted {
  border-color: #c9d8eb;
  background: #f3f8ff;
  color: var(--gph-text);
}

.gph-alert--success {
  border-color: #b9dfc8;
  background: var(--gph-success-soft);
  color: var(--gph-success);
}

.gph-alert--error {
  border-color: #efc6c0;
  background: var(--gph-danger-soft);
  color: var(--gph-danger);
}

.gph-panel {
  display: grid;
  gap: 0.74rem;
}

.gph-panel__head {
  display: grid;
  gap: 0.24rem;
}

.gph-panel__head h3 {
  margin: 0;
  color: var(--gph-title);
  font-size: 1.28rem;
  line-height: 1.2;
}

.gph-panel__head p {
  margin: 0;
  color: var(--gph-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.gph-panel__stack,
.gph-business-list,
.gph-outcomes,
.gph-review {
  display: grid;
  gap: 0.72rem;
}

.gph-question,
.gph-card,
.gph-business-card,
.gph-review-card,
.gph-upload-item,
.gph-empty--card {
  border: 1px solid var(--gph-line);
  border-radius: 14px;
  background: var(--gph-surface);
}

.gph-question,
.gph-card,
.gph-business-card {
  padding: 0.76rem;
}

.gph-question {
  display: grid;
  gap: 0.58rem;
  box-shadow: 0 1px 0 rgba(16, 36, 62, 0.02);
}

.gph-question__head {
  display: grid;
  gap: 0.16rem;
}

.gph-question__head h4,
.gph-question__head h5 {
  margin: 0;
  color: var(--gph-title);
  font-size: 0.98rem;
  line-height: 1.35;
}

.gph-question__head p {
  margin: 0;
  color: var(--gph-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.gph-question--required {
  border-left: 4px solid #2d7be5;
}

.gph-question--optional {
  border-style: dashed;
  background: var(--gph-surface-soft);
}

.gph-question--subtle {
  background: var(--gph-surface-soft);
}

.gph-question--accent {
  border-color: #c4d7f1;
  background: #edf4ff;
}

.gph-card--info {
  border-color: #cbdbf1;
  background: #eff5ff;
}

.gph-grid {
  display: grid;
  gap: 0.64rem;
}

.gph-grid--1,
.gph-grid--2,
.gph-grid--3,
.gph-phone-row {
  grid-template-columns: 1fr;
}

.gph-field {
  display: grid;
  gap: 0.25rem;
}

.gph-field--full {
  grid-column: 1 / -1;
}

.gph-field label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin: 0;
  color: var(--gph-title);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.gph-required {
  color: var(--gph-danger);
}

.gph-optional {
  color: var(--gph-muted);
  font-size: 0.73rem;
  font-weight: 600;
}

.gph-field input:not([type="checkbox"]):not([type="radio"]),
.gph-field select,
.gph-field textarea {
  width: 100%;
  min-height: 2.7rem;
  border: 1px solid var(--gph-line);
  border-radius: 12px;
  padding: 0.6rem 0.74rem;
  color: var(--gph-title);
  background: #ffffff;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.gph-field textarea {
  min-height: 5.6rem;
  resize: vertical;
}

.gph-field input:not([type="checkbox"]):not([type="radio"]):hover,
.gph-field select:hover,
.gph-field textarea:hover {
  border-color: var(--gph-line-strong);
}

.gph-field input:not([type="checkbox"]):not([type="radio"]):focus,
.gph-field select:focus,
.gph-field textarea:focus {
  border-color: var(--gph-accent);
  box-shadow: 0 0 0 3px rgba(15, 103, 215, 0.16);
  outline: none;
}

.gph-field input:not([type="checkbox"]):not([type="radio"]):disabled,
.gph-field select:disabled,
.gph-field textarea:disabled {
  background: var(--gph-surface-muted);
  border-color: #c9d6e8;
  color: #7288a6;
  cursor: not-allowed;
}

.gph-field input:not([type="checkbox"]):not([type="radio"])::placeholder,
.gph-field textarea::placeholder {
  color: #91a4be;
}

.gph-field small {
  margin: 0;
  color: var(--gph-muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.gph-image-field {
  border: 1px solid var(--gph-line);
  border-radius: 12px;
  background: var(--gph-surface-soft);
  padding: 0.62rem;
  display: grid;
  gap: 0.46rem;
}

.gph-image-field__visual {
  min-height: 7.5rem;
  border: 1px dashed #b9c9de;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gph-image-field__preview {
  width: 100%;
  height: 100%;
}

.gph-image-field__preview img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 14rem;
  object-fit: contain;
  background: #ffffff;
}

.gph-image-field__empty {
  color: var(--gph-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.8rem;
}

.gph-image-field__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gph-image-status {
  min-height: 1rem;
  font-size: 0.74rem;
  color: var(--gph-muted);
}

.gph-image-status--success {
  color: var(--gph-success);
}

.gph-image-status--error {
  color: var(--gph-danger);
}

.gph-field--invalid input:not([type="checkbox"]):not([type="radio"]),
.gph-field--invalid select,
.gph-field--invalid textarea {
  border-color: var(--gph-danger);
  background: #fffaf9;
  box-shadow: 0 0 0 2px rgba(183, 61, 46, 0.12);
}

.gph-phone-row {
  display: grid;
  gap: 0.5rem;
}

.gph-check {
  display: flex;
  align-items: flex-start;
  gap: 0.58rem;
  color: var(--gph-title);
}

.gph-check input {
  all: unset;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  border: 2px solid #7991af;
  border-radius: 4px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.gph-check input[type="radio"] {
  border-radius: 999px;
}

.gph-check input::after {
  content: "";
  display: block;
  opacity: 0;
  transform: scale(0.74);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.gph-check input[type="checkbox"]::after {
  width: 0.29rem;
  height: 0.52rem;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0.74);
}

.gph-check input[type="radio"]::after {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #ffffff;
}

.gph-check input:hover,
.gph-check input:focus-visible {
  border-color: var(--gph-accent);
  box-shadow: 0 0 0 3px rgba(15, 103, 215, 0.16);
}

.gph-check input:checked {
  border-color: var(--gph-accent);
  background: var(--gph-accent);
}

.gph-check input:checked::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.gph-check input[type="radio"]:checked::after {
  transform: scale(1);
}

.gph-check span {
  display: grid;
  gap: 0.08rem;
}

.gph-check span strong {
  font-size: 0.89rem;
  font-weight: 700;
}

.gph-check span small {
  font-size: 0.78rem;
}

.gph-error {
  min-height: 1rem;
  color: var(--gph-danger);
  font-size: 0.76rem;
  line-height: 1.35;
}

.gph-business-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.gph-business-card__meta h4 {
  margin: 0.16rem 0 0;
  color: var(--gph-title);
  font-size: 0.98rem;
}

.gph-business-card__meta p {
  margin: 0.24rem 0 0;
  color: var(--gph-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.gph-link-btn {
  border: 0;
  background: transparent;
  color: #1f5ea8;
  font-size: 0.81rem;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.gph-link-btn:hover:not(:disabled),
.gph-link-btn:focus-visible {
  color: #123d6f;
  text-decoration: underline;
  outline: none;
}

.gph-link-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.gph-empty {
  margin: 0;
  color: var(--gph-muted);
  font-size: 0.82rem;
}

.gph-empty--card {
  padding: 0.64rem 0.72rem;
  border-style: dashed;
  background: var(--gph-surface-soft);
}

.gph-actions-row,
.gph-upload-controls,
.gph-outcome-row__actions,
.gph-footer__left,
.gph-footer__right {
  display: flex;
  align-items: center;
  gap: 0.54rem;
  flex-wrap: wrap;
}

.gph-actions-row {
  margin-top: 0.1rem;
}

.gph-outcome-row__actions {
  justify-content: flex-end;
}

.gph-btn {
  min-height: 2.6rem;
  border-radius: 12px;
  border: 1px solid var(--gph-line);
  background: #ffffff;
  color: var(--gph-title);
  padding: 0.54rem 0.86rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.44rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.gph-btn:hover:not(:disabled),
.gph-btn:focus-visible {
  border-color: var(--gph-line-strong);
  box-shadow: 0 11px 20px rgba(16, 36, 62, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.gph-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.gph-btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gph-accent) 0%, var(--gph-accent-2) 100%);
  color: #ffffff;
}

.gph-btn--secondary {
  background: #edf4ff;
  border-color: #c7daf4;
  color: #1f5498;
}

.gph-btn--ghost {
  background: #ffffff;
  border-color: #d6e0ef;
  color: #2f4869;
}

.gph-upload-list {
  display: grid;
  gap: 0.5rem;
}

.gph-upload-item {
  padding: 0.58rem 0.64rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--gph-surface-soft);
}

.gph-upload-item__meta {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
  flex: 1 1 auto;
}

.gph-upload-item__name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.gph-upload-item__meta strong {
  min-width: 0;
  font-size: 0.83rem;
}

.gph-upload-item__meta strong a,
.gph-upload-item__meta strong span {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}

.gph-upload-item__meta small {
  color: var(--gph-muted);
  font-size: 0.73rem;
}

.gph-upload-pill {
  border-radius: 999px;
  background: #deecff;
  color: #1b4f96;
  padding: 0.11rem 0.44rem;
  font-size: 0.65rem;
  font-weight: 800;
}

.gph-upload-status,
.gph-btn-status {
  min-height: 1rem;
  color: var(--gph-muted);
  font-size: 0.74rem;
}

.gph-upload-status--success,
.gph-btn-status--success {
  color: var(--gph-success);
}

.gph-upload-status--error,
.gph-btn-status--error {
  color: var(--gph-danger);
}

.gph-review__grid {
  display: grid;
  gap: 0.56rem;
}

.gph-review-card {
  padding: 0.66rem;
  display: grid;
  gap: 0.14rem;
}

.gph-review-card__label {
  margin: 0;
  color: var(--gph-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.gph-review-card strong {
  color: var(--gph-title);
  font-size: 0.9rem;
}

.gph-review-card small {
  color: var(--gph-muted);
  font-size: 0.76rem;
}

.gph-review-card[data-state="ready"] {
  border-color: #b6ddc8;
  background: var(--gph-success-soft);
}

.gph-review-card[data-state="attention"] {
  border-color: #ecd4ad;
  background: var(--gph-warning-soft);
}

.gph-review-card[data-state="optional"] {
  border-style: dashed;
  background: var(--gph-surface-soft);
}

.gph-review-note {
  border-radius: 12px;
  border: 1px solid #cbd9ea;
  background: #f3f8ff;
  padding: 0.6rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--gph-text);
  font-size: 0.79rem;
}

.gph-review-note i {
  color: var(--gph-success);
}

.gph-footer {
  margin-top: 0.8rem;
  position: sticky;
  bottom: 0.42rem;
  z-index: 7;
  border: 1px solid var(--gph-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(6px);
  box-shadow: var(--gph-shadow-sm);
  padding: 0.62rem;
  display: grid;
  gap: 0.5rem;
}

.gph-footer__left {
  justify-content: flex-start;
}

.gph-footer__right {
  justify-content: flex-end;
}

.gph-btn-stack--quiet {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.gph-btn-status--footer {
  margin-left: auto;
}

[data-gph-status-draft]:empty,
[data-gph-status-final]:empty,
[data-gph-status-nav]:empty,
[data-gph-status-universal]:empty {
  display: none;
}

@media (min-width: 720px) {
  .gph-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gph-phone-row {
    grid-template-columns: 0.92fr 1.5fr 0.78fr;
  }

  .gph-review__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .gph-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gph-panel__head h3 {
    font-size: 1.36rem;
  }

  .gph-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .gph-footer__right {
    flex-wrap: nowrap;
  }
}

@media (min-width: 1140px) {
  .gph__layout {
    grid-template-columns: 310px minmax(0, 1fr);
    align-items: start;
  }

  .gph__rail {
    position: sticky;
    top: 0.86rem;
  }

  .gph__body {
    padding: 1rem;
  }
}
