/* Framework-neutral reference components. Prefix all application bindings with gp-. */
.gp-root,
.gp-root * {
  box-sizing: border-box;
}
.gp-root {
  font-family: var(--gp-font);
  font-size: var(--gp-type-body);
  line-height: var(--gp-line-body);
  color: var(--gp-text);
  background: var(--gp-bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
.gp-root :where(button, input, select) {
  font: inherit;
}
.gp-root button {
  cursor: pointer;
}
.gp-root button:disabled {
  cursor: not-allowed;
}
.gp-root [hidden] {
  display: none !important;
}
.gp-root h1,
.gp-root h2,
.gp-root h3,
.gp-root p {
  margin: 0;
}
.gp-root button,
.gp-root a,
.gp-root input,
.gp-root select {
  -webkit-tap-highlight-color: transparent;
}
.gp-root :is(button, a, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gp-focus);
  outline-offset: 3px;
}
.gp-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gp-muted {
  color: var(--gp-text-muted);
}
.gp-caption {
  font-size: var(--gp-type-caption);
  color: var(--gp-text-muted);
}
.gp-section-title {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}
.gp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.gp-stack {
  display: flex;
  flex-direction: column;
  gap: var(--gp-space-4);
}
.gp-row {
  display: flex;
  align-items: center;
  gap: var(--gp-space-2);
}
.gp-spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gp-space-3);
}
.gp-separator {
  width: 1px;
  height: 20px;
  background: var(--gp-border);
  margin: 0 4px;
}
/* Buttons: one filled primary per task stage. */
.gp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--gp-target);
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--gp-radius-control);
  font-size: 14px;
  font-weight: 550;
  line-height: 1;
  white-space: nowrap;
  transition:
    background var(--gp-motion-fast),
    border-color var(--gp-motion-fast),
    color var(--gp-motion-fast);
  text-decoration: none;
}
.gp-button--primary {
  color: var(--gp-primary-fg);
  background: var(--gp-primary);
  border-color: var(--gp-primary);
}
.gp-button--primary:hover:not(:disabled) {
  background: var(--gp-primary-hover);
  border-color: var(--gp-primary-hover);
}
.gp-button--secondary {
  color: var(--gp-text);
  background: var(--gp-surface);
  border-color: var(--gp-border-strong);
}
.gp-button--secondary:hover:not(:disabled) {
  background: var(--gp-surface-muted);
}
.gp-button--ghost {
  color: var(--gp-text-muted);
  background: transparent;
}
.gp-button--ghost:hover:not(:disabled) {
  color: var(--gp-text);
  background: var(--gp-surface-muted);
}
.gp-button--danger {
  color: var(--gp-danger);
  background: var(--gp-danger-soft);
}
.gp-button--danger:hover:not(:disabled) {
  box-shadow: inset 0 0 0 1px var(--gp-danger);
}
.gp-button:disabled {
  color: var(--gp-disabled);
  background: var(--gp-disabled-bg);
  border-color: transparent;
  box-shadow: none;
}
.gp-icon-button {
  width: var(--gp-target);
  min-width: var(--gp-target);
  height: var(--gp-target);
  padding: 0;
}
.gp-button[aria-pressed='true'],
.gp-tool[aria-pressed='true'] {
  color: var(--gp-accent-text);
  background: var(--gp-accent-soft);
  box-shadow: inset 0 0 0 1px var(--gp-accent);
}
/* Shell: canvas remains the primary content, not a nested form card. */
.gp-app {
  height: 100%;
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--gp-header-h) var(--gp-command-h) minmax(0, 1fr) var(--gp-footer-h);
  overflow: hidden;
}
.gp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--gp-surface);
  border-bottom: 1px solid var(--gp-border);
  gap: 16px;
}
.gp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gp-text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.gp-brand img {
  width: 30px;
  height: 30px;
}
.gp-header .gp-button--primary {
  min-height: 40px;
}
.gp-local-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gp-text-muted);
}
.gp-local-note .gp-icon {
  width: 16px;
  height: 16px;
}
.gp-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--gp-surface);
  border-bottom: 1px solid var(--gp-border);
  gap: 12px;
}
.gp-command .gp-button {
  font-size: 13px;
}
.gp-file-name {
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  color: var(--gp-text-muted);
}
.gp-workbench {
  display: grid;
  grid-template-columns: var(--gp-rail-w) minmax(0, 1fr) var(--gp-inspector-w);
  min-height: 0;
  position: relative;
}
.gp-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px;
  border-right: 1px solid var(--gp-border);
  background: var(--gp-surface);
}
.gp-tool {
  width: 44px;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--gp-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  padding: 0;
  white-space: nowrap;
}
.gp-tool:hover {
  background: var(--gp-surface-muted);
}
.gp-tool[aria-pressed='true'] {
  border-left: 2px solid var(--gp-accent);
}
.gp-canvas {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--gp-canvas);
  display: grid;
  place-items: center;
  padding: 52px 30px;
}
.gp-canvas-top {
  position: absolute;
  top: 16px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gp-text-muted);
  gap: 12px;
}
.gp-canvas-bottom {
  position: absolute;
  bottom: 16px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gp-text-muted);
  gap: 12px;
}
.gp-photo {
  position: relative;
  line-height: 0;
  margin: 0;
  width: min(100%, 840px, calc((100dvh - 300px) * 1.5));
  box-shadow: 0 3px 18px rgb(16 24 40 / 0.1);
}
.gp-photo > img {
  display: block;
  width: 100%;
  height: auto;
}
.gp-photo-selection {
  position: absolute;
  border: 2px solid var(--gp-accent);
  outline: 1px solid var(--gp-surface);
  outline-offset: 1px;
}
.gp-handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gp-surface);
  border: 1.5px solid var(--gp-accent);
  border-radius: 1px;
  left: -5px;
  top: -5px;
}
.gp-handle:nth-child(2) {
  left: auto;
  right: -5px;
}
.gp-handle:nth-child(3) {
  top: auto;
  bottom: -5px;
}
.gp-handle:nth-child(4) {
  left: auto;
  right: -5px;
  top: auto;
  bottom: -5px;
}
.gp-selection-label {
  position: absolute;
  left: -2px;
  top: -29px;
  background: var(--gp-accent);
  color: var(--gp-surface);
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.45;
  border-radius: 5px 5px 5px 0;
  white-space: nowrap;
}
.gp-selection-label {
  color: var(--gp-accent-on);
}
.gp-canvas-status {
  background: var(--gp-surface);
  border: 1px solid var(--gp-border);
  padding: 5px 9px;
  border-radius: 6px;
  color: var(--gp-text-muted);
}
.gp-inspector {
  background: var(--gp-surface);
  border-left: 1px solid var(--gp-border);
  padding: 20px;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--gp-border-strong) transparent;
}
.gp-inspector-section + .gp-inspector-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--gp-border);
}
.gp-inspector-section > h2 {
  margin-bottom: 12px;
}
.gp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--gp-surface);
  border-top: 1px solid var(--gp-border);
  padding: 0 20px;
  font-size: 12px;
  color: var(--gp-text-muted);
}
.gp-footer .gp-icon {
  width: 16px;
  height: 16px;
}
.gp-footer .gp-button {
  font-size: 12px;
  padding: 0 6px;
}
/* Native radio inputs keep effect and shape choices keyboard-accessible. */
.gp-choice-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.gp-choice {
  position: relative;
  min-width: 0;
  cursor: pointer;
}
.gp-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}
.gp-choice-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 8px 6px;
  min-height: 78px;
  border: 1px solid var(--gp-border-strong);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 550;
  color: var(--gp-text-muted);
  background: var(--gp-surface);
}
.gp-choice-content img {
  width: 100%;
  height: 38px;
  object-fit: cover;
  border-radius: 4px;
}
.gp-choice-content .gp-icon {
  width: 22px;
  height: 22px;
}
.gp-choice input:checked + .gp-choice-content {
  border-color: var(--gp-accent);
  color: var(--gp-accent-text);
  background: var(--gp-accent-soft);
  box-shadow: inset 0 0 0 1px var(--gp-accent);
}
.gp-choice input:focus-visible + .gp-choice-content {
  outline: 2px solid var(--gp-focus);
  outline-offset: 3px;
}
.gp-choice input:disabled + .gp-choice-content {
  color: var(--gp-disabled);
  background: var(--gp-disabled-bg);
  cursor: not-allowed;
}
.gp-choice-group--shape {
  grid-template-columns: 1fr 1fr;
}
.gp-choice-group--shape .gp-choice-content {
  min-height: 44px;
  flex-direction: row;
  justify-content: center;
  padding: 8px;
}
.gp-control-label {
  display: block;
  font-size: 12px;
  color: var(--gp-text-muted);
  margin: 14px 0 7px;
}
.gp-field {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--gp-border-strong);
  border-radius: 8px;
  color: var(--gp-text);
  background: var(--gp-surface);
}
.gp-select {
  min-height: 44px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--gp-border-strong);
  border-radius: 8px;
  background: var(--gp-surface);
  color: var(--gp-text);
}
.gp-range {
  width: 100%;
  height: 32px;
  appearance: none;
  background: transparent;
  margin: 0;
  cursor: pointer;
}
.gp-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    var(--gp-accent) 0 var(--gp-range-progress, 35%),
    var(--gp-border) var(--gp-range-progress, 35%) 100%
  );
}
.gp-range::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gp-accent);
  border: 2px solid var(--gp-surface);
  box-shadow: 0 0 0 1px var(--gp-accent);
  margin-top: -5px;
}
.gp-range::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: var(--gp-border);
}
.gp-range::-moz-range-progress {
  height: 4px;
  background: var(--gp-accent);
}
.gp-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid var(--gp-surface);
  border-radius: 50%;
  background: var(--gp-accent);
}
.gp-disclosure {
  padding: 8px 0;
  min-height: 44px;
  color: var(--gp-text-muted);
  font-size: 12px;
}
.gp-disclosure summary {
  cursor: pointer;
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gp-disclosure summary .gp-icon {
  width: 16px;
  height: 16px;
}
.gp-disclosure[open] summary .gp-icon {
  transform: rotate(90deg);
}
.gp-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.gp-layer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.gp-layer {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--gp-text);
  font-size: 12px;
}
.gp-layer[aria-pressed='true'] {
  background: var(--gp-accent-soft);
  border-color: var(--gp-accent);
  color: var(--gp-accent-text);
}
.gp-layer .gp-icon {
  width: 18px;
  height: 18px;
}
.gp-layer .gp-caption {
  margin-left: auto;
  font-size: 11px;
}
.gp-count {
  font-size: 11px;
  color: var(--gp-text-muted);
  border: 1px solid var(--gp-border);
  border-radius: 5px;
  padding: 1px 6px;
}
.gp-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--gp-text-muted);
}
.gp-note--warning {
  color: var(--gp-warning);
  background: var(--gp-warning-soft);
  padding: 10px 12px;
  border-radius: 8px;
}
.gp-note--success {
  color: var(--gp-success);
  background: var(--gp-success-soft);
  padding: 10px 12px;
  border-radius: 8px;
}
.gp-note--danger {
  color: var(--gp-danger);
  background: var(--gp-danger-soft);
  padding: 10px 12px;
  border-radius: 8px;
}
.gp-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  min-height: 44px;
  cursor: pointer;
}
.gp-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--gp-accent);
}
.gp-mobile-dock {
  display: none;
}
.gp-dialog {
  font-family: var(--gp-font);
  color: var(--gp-text);
  background: var(--gp-surface);
  padding: 20px;
  border: 1px solid var(--gp-border);
  border-radius: 16px;
  box-shadow: var(--gp-shadow);
  max-width: 460px;
  width: calc(100% - 32px);
  max-height: 85dvh;
  overflow: auto;
}
.gp-dialog::backdrop {
  background: rgb(10 16 30 / 0.4);
}
/* Import: one primary action and compact, concrete examples. */
.gp-import-app {
  height: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 56px minmax(0, 1fr) 44px;
}
.gp-import-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
  max-width: 1120px;
  margin: auto;
  padding: 36px 24px;
  width: 100%;
}
.gp-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gp-accent-text);
  margin-bottom: 18px;
}
.gp-hero-title {
  font-size: var(--gp-type-hero);
  font-weight: 680;
  line-height: 1.35;
  letter-spacing: -1.4px;
  word-break: keep-all;
}
.gp-hero-description {
  font-size: 15px;
  color: var(--gp-text-muted);
  line-height: 1.8;
  max-width: 440px;
  margin-top: 18px !important;
  word-break: keep-all;
}
.gp-example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.gp-example {
  padding: 0;
  text-align: left;
  border: 1px solid var(--gp-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--gp-surface);
  color: var(--gp-text);
  font: inherit;
  cursor: pointer;
}
.gp-example:hover {
  border-color: var(--gp-accent);
}
.gp-example > img {
  width: 100%;
  height: 94px;
  object-fit: cover;
  display: block;
}
.gp-example-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  font-size: 12px;
}
.gp-example-caption .gp-icon {
  width: 16px;
  height: 16px;
}
.gp-dropzone {
  background: var(--gp-surface);
  border: 1px dashed var(--gp-border-strong);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  min-height: 406px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.gp-dropzone[data-dragging='true'] {
  background: var(--gp-accent-soft);
  border: 2px solid var(--gp-accent);
}
.gp-dropzone > img {
  width: 212px;
  height: 146px;
  object-fit: contain;
}
.gp-dropzone h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.gp-dropzone .gp-button {
  padding: 0 26px;
  margin: 5px 0;
}
.gp-kbd {
  font-family: var(--gp-font);
  font-size: 11px;
  border: 1px solid var(--gp-border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--gp-text-muted);
  background: var(--gp-surface);
}
.gp-import-note {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--gp-text-muted);
}
/* Review: output proof first, options second. No production encoder included. */
.gp-review-app {
  height: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 56px minmax(0, 1fr) 44px;
}
.gp-review-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  min-height: 0;
}
.gp-review-canvas {
  background: var(--gp-canvas);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 0;
  padding: 32px;
}
.gp-review-canvas .gp-photo {
  width: min(100%, 860px, calc((100dvh - 290px) * 1.5));
}
.gp-review-inspector {
  padding: 28px 24px;
  background: var(--gp-surface);
  border-left: 1px solid var(--gp-border);
  overflow-y: auto;
}
.gp-review-inspector h1 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}
.gp-review-spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 13px;
  gap: 14px 8px;
  margin: 24px 0;
  padding: 20px 0;
  border-block: 1px solid var(--gp-border);
}
.gp-review-spec dt {
  color: var(--gp-text-muted);
}
.gp-review-spec dd {
  margin: 0;
  text-align: right;
}
.gp-review-inspector .gp-button--primary {
  width: 100%;
  margin: 14px 0;
}
.gp-review-inspector .gp-note {
  margin: 14px 0;
}
@media (max-width: 1199px) and (min-width: 768px) {
  .gp-root {
    --gp-inspector-w: 256px;
  }
  .gp-inspector {
    padding: 16px;
  }
  .gp-canvas {
    padding-inline: 20px;
  }
  .gp-file-name {
    max-width: 180px;
  }
  .gp-import-main {
    gap: 32px;
  }
  .gp-hero-title {
    font-size: 32px;
  }
  .gp-local-note {
    display: none;
  }
}
@media (max-width: 767px) {
  .gp-root {
    --gp-type-hero: 28px;
    --gp-inspector-w: 0px;
  }
  .gp-header {
    padding: 0 14px;
    gap: 8px;
  }
  .gp-brand {
    font-size: 17px;
  }
  .gp-brand img {
    width: 28px;
    height: 28px;
  }
  .gp-local-note,
  .gp-header .gp-header-primary,
  .gp-header-subtitle {
    display: none;
  }
  .gp-app {
    grid-template-rows: 56px 48px minmax(0, 1fr) auto;
  }
  .gp-command {
    padding: 0 10px;
    min-width: 0;
  }
  .gp-command .gp-row {
    gap: 4px;
  }
  .gp-command .gp-add-label,
  .gp-command [data-control='fit'] {
    display: none;
  }
  .gp-command [data-control='add-photo'] {
    width: 44px;
    min-width: 44px;
    padding: 0;
  }
  .gp-command .gp-file-name,
  .gp-command .gp-compare-text,
  .gp-command .gp-zoom-detail {
    display: none;
  }
  .gp-command .gp-button {
    padding: 0 8px;
  }
  .gp-command .gp-icon-button {
    padding: 0;
  }
  .gp-command .gp-separator {
    margin: 0;
  }
  .gp-workbench {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) 52px;
  }
  .gp-rail {
    grid-row: 2;
    flex-direction: row;
    justify-content: center;
    border: 0;
    border-top: 1px solid var(--gp-border);
    padding: 4px 10px;
    gap: 8px;
  }
  .gp-tool {
    width: auto;
    min-width: 94px;
    min-height: 44px;
    flex-direction: row;
    gap: 6px;
    font-size: 12px;
    padding: 0 10px;
  }
  .gp-tool[aria-pressed='true'] {
    border-left: 0;
    box-shadow: inset 0 -2px 0 var(--gp-accent);
  }
  .gp-tool .gp-icon {
    width: 18px;
    height: 18px;
  }
  .gp-canvas {
    grid-row: 1;
    padding: 42px 14px 38px;
  }
  .gp-photo {
    width: 100%;
  }
  .gp-canvas-top {
    top: 12px;
    left: 14px;
    right: 14px;
    font-size: 11px;
  }
  .gp-canvas-top span:last-child {
    display: none;
  }
  .gp-canvas-bottom {
    bottom: 10px;
    left: 14px;
    right: 14px;
    font-size: 11px;
  }
  .gp-canvas-bottom > span:last-child {
    display: none;
  }
  .gp-canvas-status {
    font-size: 11px;
    padding: 3px 6px;
  }
  .gp-inspector {
    display: none;
  }
  .gp-app > .gp-footer {
    display: none;
  }
  .gp-mobile-dock {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px max(12px, env(safe-area-inset-bottom));
    background: var(--gp-surface);
    border-top: 1px solid var(--gp-border);
  }
  .gp-mobile-dock .gp-choice-content {
    min-height: 44px;
    flex-direction: row;
    padding: 6px;
    gap: 5px;
  }
  .gp-mobile-dock .gp-choice-content img {
    width: 28px;
    height: 22px;
  }
  .gp-mobile-dock .gp-button--primary {
    width: 100%;
  }
  .gp-mobile-selection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
  }
  .gp-mobile-selection .gp-button {
    font-size: 12px;
    min-height: 44px;
    padding: 0 8px;
  }
  .gp-dialog {
    margin: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: 78dvh;
    border-radius: 16px 16px 0 0;
    padding: 18px 20px max(22px, env(safe-area-inset-bottom));
  }
  .gp-dialog .gp-inspector {
    display: block;
    border: 0;
    padding: 0;
    overflow: visible;
  }
  .gp-import-app {
    min-height: 100%;
    height: auto;
    grid-template-rows: 56px 1fr auto;
  }
  .gp-import-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 20px;
    max-width: 500px;
  }
  .gp-hero-title {
    font-size: 28px;
    letter-spacing: -1px;
  }
  .gp-hero-description {
    font-size: 14px;
    margin-top: 12px !important;
  }
  .gp-eyebrow {
    margin-bottom: 12px;
  }
  .gp-example-grid {
    margin-top: 20px;
    gap: 10px;
  }
  .gp-example > img {
    height: 78px;
  }
  .gp-dropzone {
    width: 100%;
    min-height: 300px;
    padding: 20px;
  }
  .gp-dropzone > img {
    width: 160px;
    height: 110px;
  }
  .gp-import-note {
    margin-top: 10px;
  }
  .gp-import-app .gp-footer {
    padding: 14px 20px;
    font-size: 11px;
    min-height: 54px;
    height: auto;
    align-items: flex-start;
  }
  .gp-import-app .gp-footer > span:last-child {
    display: none;
  }
  .gp-review-app {
    min-height: 100%;
    height: auto;
    grid-template-rows: 56px 1fr auto;
  }
  .gp-review-main {
    display: flex;
    flex-direction: column;
  }
  .gp-review-canvas {
    padding: 22px 14px;
    gap: 16px;
  }
  .gp-review-canvas .gp-photo {
    width: 100%;
  }
  .gp-review-inspector {
    border: 0;
    border-top: 1px solid var(--gp-border);
    padding: 22px 20px;
  }
  .gp-review-spec {
    margin: 16px 0;
    padding: 16px 0;
  }
  .gp-review-app .gp-footer {
    height: auto;
    min-height: 44px;
    padding: 12px 20px;
    font-size: 11px;
  }
}
