.gapc-app,
.gapc-app * {
  box-sizing: border-box;
}

.gapc-app {
  --gapc-bg: #07111f;
  --gapc-bg-soft: #0d1b2f;
  --gapc-card: rgba(15, 27, 48, 0.82);
  --gapc-card-strong: rgba(17, 31, 55, 0.96);
  --gapc-border: rgba(148, 163, 184, 0.18);
  --gapc-border-strong: rgba(96, 165, 250, 0.38);
  --gapc-text: #f8fafc;
  --gapc-muted: #94a3b8;
  --gapc-muted-2: #64748b;
  --gapc-primary: #4f8cff;
  --gapc-primary-2: #7c5cff;
  --gapc-success: #34d399;
  --gapc-danger: #fb7185;
  --gapc-warning: #fbbf24;
  --gapc-shadow: 0 28px 90px rgba(2, 8, 23, 0.55);
  --gapc-radius-xl: 28px;
  --gapc-radius-lg: 20px;
  --gapc-radius-md: 14px;
  --gapc-radius-sm: 10px;

  width: min(1120px, calc(100% - 32px));
  margin: 36px auto;
  color: var(--gapc-text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.gapc-app button,
.gapc-app input,
.gapc-app a {
  font: inherit;
}

.gapc-app button,
.gapc-app a {
  -webkit-tap-highlight-color: transparent;
}

.gapc-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gapc-border);
  border-radius: var(--gapc-radius-xl);
  background:
    radial-gradient(circle at 10% 0%, rgba(79, 140, 255, 0.17), transparent 34%),
    radial-gradient(circle at 90% 12%, rgba(124, 92, 255, 0.15), transparent 30%),
    linear-gradient(145deg, rgba(7, 17, 31, 0.98), rgba(9, 21, 39, 0.96));
  box-shadow: var(--gapc-shadow);
  isolation: isolate;
}

.gapc-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 75%);
}

.gapc-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 30px 32px 24px;
  border-bottom: 1px solid var(--gapc-border);
}

.gapc-brand-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  background:
    linear-gradient(135deg, var(--gapc-primary), var(--gapc-primary-2));
  box-shadow:
    0 14px 32px rgba(79, 140, 255, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.gapc-hero-copy h2 {
  margin: 3px 0 4px;
  color: #fff;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.gapc-hero-copy p {
  margin: 0;
  color: var(--gapc-muted);
  font-size: 15px;
}

.gapc-eyebrow {
  display: inline-block;
  color: #93c5fd;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.gapc-version {
  align-self: start;
  padding: 7px 10px;
  border: 1px solid var(--gapc-border);
  border-radius: 999px;
  color: var(--gapc-muted);
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
}

.gapc-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 32px 0;
  padding: 6px;
  border: 1px solid var(--gapc-border);
  border-radius: 16px;
  background: rgba(3, 10, 21, 0.54);
}

.gapc-mode-tab {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  color: var(--gapc-muted);
  font-weight: 760;
  cursor: pointer;
  background: transparent;
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.gapc-mode-tab:hover {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.04);
}

.gapc-mode-tab.is-active {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(79, 140, 255, 0.95), rgba(124, 92, 255, 0.95));
  box-shadow: 0 10px 28px rgba(79, 140, 255, 0.25);
}

.gapc-mode-tab:active {
  transform: scale(0.985);
}

.gapc-tab-icon {
  display: inline-block;
  margin-right: 8px;
  opacity: 0.9;
}

.gapc-panel {
  padding: 26px 32px 32px;
  animation: gapcFadeUp 0.28s ease both;
}

.gapc-panel[hidden] {
  display: none !important;
}

.gapc-drop,
.gapc-batch-drop {
  width: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  border: 1.5px dashed rgba(96, 165, 250, 0.58);
  border-radius: var(--gapc-radius-lg);
  color: var(--gapc-text);
  text-align: center;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 15%, rgba(79, 140, 255, 0.12), transparent 42%),
    rgba(10, 24, 44, 0.72);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.gapc-drop:hover,
.gapc-batch-drop:hover,
.gapc-drop.dragging,
.gapc-batch-drop.dragging {
  transform: translateY(-2px);
  border-color: rgba(125, 184, 255, 0.95);
  background:
    radial-gradient(circle at 50% 15%, rgba(79, 140, 255, 0.2), transparent 45%),
    rgba(11, 27, 50, 0.9);
  box-shadow:
    0 20px 44px rgba(2, 8, 23, 0.35),
    0 0 0 4px rgba(79, 140, 255, 0.08);
}

.gapc-drop-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  border: 1px solid rgba(147, 197, 253, 0.25);
  border-radius: 18px;
  color: #dbeafe;
  font-size: 29px;
  line-height: 1;
  background:
    linear-gradient(145deg, rgba(79, 140, 255, 0.25), rgba(124, 92, 255, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.gapc-drop strong,
.gapc-batch-drop strong {
  color: #fff;
  font-size: 19px;
  font-weight: 800;
}

.gapc-drop small,
.gapc-batch-drop small {
  color: var(--gapc-muted);
  font-size: 13px;
}

.gapc-status,
.gapc-batch-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--gapc-muted);
  text-align: center;
  font-size: 14px;
  font-weight: 650;
}

.gapc-status.working,
.gapc-batch-status.working {
  color: #93c5fd;
}

.gapc-status.success,
.gapc-batch-status.success {
  color: var(--gapc-success);
}

.gapc-status.error,
.gapc-batch-status.error {
  color: var(--gapc-danger);
}

.gapc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.gapc-preview-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--gapc-border);
  border-radius: var(--gapc-radius-lg);
  background: var(--gapc-card);
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.22);
}

.gapc-result-card {
  border-color: rgba(52, 211, 153, 0.24);
}

.gapc-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gapc-border);
}

.gapc-card-heading h3 {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.gapc-card-heading span,
.gapc-card-heading small {
  color: var(--gapc-muted);
  font-size: 12px;
}

.gapc-image-stage {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.025) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.025) 75%),
    #060e1a;
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}

.gapc-image-stage img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: contain;
}

.gapc-result-card .gapc-image-stage {
  background: #04070d;
}

/* Single-photo live processing panel */

.gapc-single-processing {
  width: min(86%, 420px);
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 28px 24px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 22px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(79, 140, 255, 0.16), transparent 48%),
    rgba(8, 18, 34, 0.92);
  box-shadow:
    0 24px 55px rgba(2, 8, 23, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: gapcFadeUp 0.28s ease both;
}

.gapc-processing-orb {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      rgba(56, 189, 248, 0.08),
      var(--gapc-primary),
      var(--gapc-primary-2),
      rgba(56, 189, 248, 0.08)
    );
  box-shadow:
    0 0 0 10px rgba(79, 140, 255, 0.05),
    0 0 42px rgba(79, 140, 255, 0.38);
  animation: gapcOrbRotate 2.4s linear infinite;
}

.gapc-processing-orb::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.16), transparent 28%),
    #07111f;
  box-shadow: inset 0 0 24px rgba(79, 140, 255, 0.18);
}

.gapc-processing-orb span {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 3px solid rgba(219, 234, 254, 0.22);
  border-top-color: #dbeafe;
  border-right-color: #93c5fd;
  border-radius: 50%;
  animation: gapcSpin 0.9s linear infinite;
}

.gapc-processing-copy {
  display: grid;
  gap: 7px;
}

.gapc-processing-title {
  color: #fff;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.gapc-processing-message {
  min-height: 38px;
  margin: 0;
  color: var(--gapc-muted);
  font-size: 13px;
  line-height: 1.45;
}

.gapc-processing-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(2, 8, 23, 0.78);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55);
}

.gapc-processing-fill {
  display: block;
  width: 18%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #38bdf8, var(--gapc-primary), var(--gapc-primary-2));
  box-shadow: 0 0 18px rgba(79, 140, 255, 0.48);
  transition: width 0.7s ease;
}

.gapc-processing-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      transparent 15%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 85%
    );
  transform: translateX(-100%);
  animation: gapcShimmer 1.45s linear infinite;
}

.gapc-processing-steps {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.gapc-processing-steps span {
  position: relative;
  padding-top: 20px;
  color: var(--gapc-muted-2);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.2;
}

.gapc-processing-steps span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translateX(-50%);
  border: 2px solid rgba(148, 163, 184, 0.28);
  border-radius: 50%;
  background: #081222;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.gapc-processing-steps span.is-active {
  color: #bfdbfe;
}

.gapc-processing-steps span.is-active::before {
  border-color: #93c5fd;
  background: var(--gapc-primary);
  box-shadow: 0 0 0 5px rgba(79, 140, 255, 0.12);
  animation: gapcStagePulse 1.2s ease-in-out infinite;
}

.gapc-processing-steps span.is-complete {
  color: #a7f3d0;
}

.gapc-processing-steps span.is-complete::before {
  border-color: var(--gapc-success);
  background: var(--gapc-success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.09);
}

.gapc-single-processing.is-complete {
  border-color: rgba(52, 211, 153, 0.32);
  background:
    radial-gradient(circle at 50% 0%, rgba(52, 211, 153, 0.13), transparent 48%),
    rgba(8, 18, 34, 0.94);
}

.gapc-single-processing.is-complete .gapc-processing-orb {
  background:
    conic-gradient(
      from 0deg,
      rgba(52, 211, 153, 0.08),
      var(--gapc-success),
      #5eead4,
      rgba(52, 211, 153, 0.08)
    );
  box-shadow:
    0 0 0 10px rgba(52, 211, 153, 0.05),
    0 0 42px rgba(52, 211, 153, 0.34);
}

.gapc-single-processing.is-error {
  border-color: rgba(251, 113, 133, 0.32);
  background:
    radial-gradient(circle at 50% 0%, rgba(251, 113, 133, 0.12), transparent 48%),
    rgba(8, 18, 34, 0.94);
}

.gapc-single-processing.is-error .gapc-processing-orb {
  animation: none;
  background:
    conic-gradient(
      from 0deg,
      rgba(251, 113, 133, 0.08),
      var(--gapc-danger),
      #fda4af,
      rgba(251, 113, 133, 0.08)
    );
  box-shadow:
    0 0 0 10px rgba(251, 113, 133, 0.05),
    0 0 42px rgba(251, 113, 133, 0.32);
}

.gapc-single-processing.is-error .gapc-processing-orb span {
  width: 4px;
  height: 40px;
  border: 0;
  border-radius: 99px;
  background: #fff;
  animation: none;
}

.gapc-single-processing.is-error .gapc-processing-fill {
  background: var(--gapc-danger);
  box-shadow: none;
}

.gapc-single-processing.is-error .gapc-processing-message {
  color: #fda4af;
}

.gapc-result {
  animation: gapcResultReveal 0.36s ease both;
}

.gapc-actions,
.gapc-batch-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.gapc-button,
.gapc-download,
.gapc-item-download {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.gapc-button:hover,
.gapc-download:hover,
.gapc-item-download:hover {
  transform: translateY(-1px);
}

.gapc-button:active,
.gapc-download:active,
.gapc-item-download:active {
  transform: translateY(0);
}

.gapc-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.gapc-button-primary,
.gapc-download,
.gapc-item-download {
  color: #fff !important;
  background:
    linear-gradient(135deg, var(--gapc-primary), var(--gapc-primary-2));
  box-shadow: 0 12px 26px rgba(79, 140, 255, 0.22);
}

.gapc-button-primary:hover,
.gapc-download:hover,
.gapc-item-download:hover {
  box-shadow: 0 16px 34px rgba(79, 140, 255, 0.3);
}

.gapc-button-secondary {
  color: #dbeafe;
  border-color: var(--gapc-border);
  background: rgba(255, 255, 255, 0.055);
}

.gapc-button-secondary:hover {
  border-color: rgba(147, 197, 253, 0.32);
  background: rgba(255, 255, 255, 0.09);
}

.gapc-batch-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid var(--gapc-border);
  border-radius: var(--gapc-radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.gapc-batch-toolbar > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gapc-batch-count {
  color: #fff;
  font-size: 16px;
}

.gapc-batch-summary {
  color: var(--gapc-muted);
  font-size: 12px;
}

.gapc-batch-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.gapc-batch-progress {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: var(--gapc-radius-md);
  background:
    linear-gradient(135deg, rgba(79, 140, 255, 0.09), rgba(124, 92, 255, 0.06));
}

.gapc-progress-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.gapc-progress-topline > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gapc-progress-label {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.gapc-progress-count {
  color: var(--gapc-muted);
  font-size: 12px;
}

.gapc-progress-percent {
  color: #bfdbfe;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.gapc-progress-track {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(2, 8, 23, 0.68);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.gapc-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #38bdf8, var(--gapc-primary), var(--gapc-primary-2));
  box-shadow: 0 0 20px rgba(79, 140, 255, 0.5);
  transition: width 0.48s ease;
  position: relative;
  overflow: hidden;
}

.gapc-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      transparent 0%,
      rgba(255, 255, 255, 0.24) 45%,
      transparent 70%
    );
  transform: translateX(-100%);
  animation: gapcShimmer 1.6s linear infinite;
}

.gapc-batch-list {
  display: grid;
  gap: 12px;
}

.gapc-batch-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--gapc-border);
  border-radius: var(--gapc-radius-md);
  background: var(--gapc-card);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
  animation: gapcFadeUp 0.24s ease both;
}

.gapc-batch-item:hover {
  transform: translateY(-1px);
  border-color: rgba(147, 197, 253, 0.25);
  background: var(--gapc-card-strong);
}

.gapc-batch-item.is-completed {
  border-color: rgba(52, 211, 153, 0.28);
}

.gapc-batch-item.is-failed {
  border-color: rgba(251, 113, 133, 0.28);
}

.gapc-batch-item.is-running,
.gapc-batch-item.is-uploading {
  border-color: rgba(96, 165, 250, 0.34);
}

.gapc-item-thumb {
  position: relative;
  width: 78px;
  height: 78px;
  overflow: hidden;
  border: 1px solid var(--gapc-border);
  border-radius: 12px;
  background: #030914;
}

.gapc-item-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gapc-item-status-icon {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(4, 10, 20, 0.9);
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: var(--gapc-muted-2);
}

.is-completed .gapc-item-status-icon {
  background: var(--gapc-success);
}

.is-failed .gapc-item-status-icon {
  background: var(--gapc-danger);
}

.is-running .gapc-item-status-icon,
.is-uploading .gapc-item-status-icon {
  background: var(--gapc-primary);
  animation: gapcSpin 1s linear infinite;
}

.gapc-item-content {
  min-width: 0;
}

.gapc-item-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.gapc-item-name-wrap {
  min-width: 0;
}

.gapc-item-name {
  display: block;
  overflow: hidden;
  color: #f8fafc;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gapc-item-name-wrap small {
  display: block;
  margin-top: 3px;
  color: var(--gapc-muted-2);
  font-size: 11px;
}

.gapc-item-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--gapc-muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.055);
}

.is-completed .gapc-item-status {
  color: #a7f3d0;
  background: rgba(52, 211, 153, 0.12);
}

.is-failed .gapc-item-status {
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.12);
}

.is-running .gapc-item-status,
.is-uploading .gapc-item-status {
  color: #bfdbfe;
  background: rgba(79, 140, 255, 0.13);
}

.gapc-item-progress {
  height: 5px;
  overflow: hidden;
  margin: 10px 0 8px;
  border-radius: 999px;
  background: rgba(2, 8, 23, 0.72);
}

.gapc-item-progress span {
  display: block;
  width: 7%;
  height: 100%;
  border-radius: inherit;
  background: var(--gapc-muted-2);
  transition: width 0.35s ease;
}

.is-queued .gapc-item-progress span {
  width: 16%;
}

.is-uploading .gapc-item-progress span,
.is-running .gapc-item-progress span {
  width: 68%;
  background:
    linear-gradient(90deg, #38bdf8, var(--gapc-primary));
  animation: gapcPulseWidth 1.25s ease-in-out infinite alternate;
}

.is-completed .gapc-item-progress span {
  width: 100%;
  background: var(--gapc-success);
}

.is-failed .gapc-item-progress span {
  width: 100%;
  background: var(--gapc-danger);
}

.gapc-item-message {
  min-height: 16px;
  margin: 0;
  color: var(--gapc-muted);
  font-size: 12px;
  line-height: 1.35;
}

.is-failed .gapc-item-message {
  color: #fda4af;
}

.gapc-item-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}

.gapc-item-download {
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 12px;
}

.gapc-item-remove {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gapc-border);
  border-radius: 9px;
  color: var(--gapc-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.gapc-item-remove:hover {
  color: #fff;
  border-color: rgba(251, 113, 133, 0.3);
  background: rgba(251, 113, 133, 0.11);
}

.gapc-studio-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 18px 32px 22px;
  border-top: 1px solid var(--gapc-border);
  color: var(--gapc-muted-2);
  font-size: 11px;
}

.gapc-studio-footer strong {
  color: #cbd5e1;
}

.gapc-app [hidden] {
  display: none !important;
}

@keyframes gapcFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gapcSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes gapcShimmer {
  to {
    transform: translateX(100%);
  }
}

@keyframes gapcPulseWidth {
  from {
    width: 42%;
    opacity: 0.68;
  }
  to {
    width: 84%;
    opacity: 1;
  }
}

@keyframes gapcOrbRotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes gapcStagePulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.16);
  }
}

@keyframes gapcResultReveal {
  from {
    opacity: 0;
    transform: scale(0.985);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@media (max-width: 820px) {
  .gapc-app {
    width: min(100% - 20px, 1120px);
    margin: 18px auto;
  }

  .gapc-hero {
    grid-template-columns: auto 1fr;
    padding: 24px 20px 20px;
  }

  .gapc-version {
    display: none;
  }

  .gapc-mode-tabs {
    margin: 18px 20px 0;
  }

  .gapc-panel {
    padding: 20px;
  }

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

  .gapc-image-stage,
  .gapc-image-stage img {
    height: auto;
    min-height: 380px;
    max-height: 620px;
  }

  .gapc-single-processing {
    width: min(90%, 440px);
  }

  .gapc-batch-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .gapc-batch-toolbar-actions {
    justify-content: stretch;
  }

  .gapc-batch-toolbar-actions .gapc-button {
    flex: 1;
  }

  .gapc-studio-footer {
    padding-inline: 20px;
  }
}

@media (max-width: 620px) {
  .gapc-shell {
    border-radius: 20px;
  }

  .gapc-hero {
    gap: 12px;
  }

  .gapc-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    font-size: 24px;
  }

  .gapc-hero-copy h2 {
    font-size: 25px;
  }

  .gapc-hero-copy p {
    font-size: 13px;
  }

  .gapc-mode-tabs {
    grid-template-columns: 1fr;
  }

  .gapc-mode-tab {
    min-height: 44px;
  }

  .gapc-drop,
  .gapc-batch-drop {
    min-height: 190px;
    padding: 22px 16px;
  }

  .gapc-single-processing {
    width: 92%;
    gap: 15px;
    padding: 24px 16px;
  }

  .gapc-processing-orb {
    width: 78px;
    height: 78px;
  }

  .gapc-processing-title {
    font-size: 16px;
  }

  .gapc-processing-steps {
    gap: 4px;
  }

  .gapc-processing-steps span {
    font-size: 9px;
  }

  .gapc-batch-item {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
  }

  .gapc-item-thumb {
    width: 62px;
    height: 62px;
  }

  .gapc-item-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .gapc-item-topline {
    flex-direction: column;
    gap: 6px;
  }

  .gapc-item-status {
    align-self: flex-start;
  }

  .gapc-progress-topline {
    align-items: center;
  }

  .gapc-actions,
  .gapc-batch-footer {
    flex-direction: column;
  }

  .gapc-actions .gapc-button,
  .gapc-actions .gapc-download,
  .gapc-batch-footer .gapc-button {
    width: 100%;
  }

  .gapc-studio-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gapc-app *,
  .gapc-app *::before,
  .gapc-app *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
