.ios-fish-identify-page {
  --ios-fish-identify-background: #0e1015;
  --ios-fish-identify-panel: rgba(25, 28, 36, 0.88);
  --ios-fish-identify-chrome: rgba(14, 16, 21, 0.98);
  --ios-fish-identify-border: rgba(30, 32, 40, 0.92);
  --ios-fish-identify-border-strong: rgba(46, 48, 64, 0.78);
  --ios-fish-identify-text: #d4d4d8;
  --ios-fish-identify-text-strong: #f4f4f5;
  --ios-fish-identify-muted: #636370;
  --ios-fish-identify-blue: #3f9fd4;
  --ios-fish-identify-blue-strong: #6fd2f2;
  --ios-fish-identify-blue-deep: #103245;
  --ios-fish-identify-blue-deeper: #091d29;
  --ios-fish-identify-success: #22c55e;
  --ios-fish-identify-danger: #ef4444;
  --ios-fish-identify-warning: #f59e0b;
  --ios-fish-identify-font: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Avenir Next Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: calc(100dvh - var(--shell-topbar-height) - var(--app-footer-height) - 32px);
  border: 0;
  border-radius: 0;
  background: var(--ios-fish-identify-background);
  box-shadow: none;
  overflow: visible;
}

.ios-fish-identify-page::before {
  display: none;
}

.ios-fish-identify-screen {
  width: min(100%, 440px);
  margin: 0 auto;
  color: var(--ios-fish-identify-text);
  font-family: var(--ios-fish-identify-font);
}

.ios-fish-identify-screen__scroll {
  display: grid;
  gap: 14px;
  padding: 16px 20px 32px;
}

.ios-fish-identify-hero,
.ios-fish-identify-panel {
  border: 1px solid var(--ios-fish-identify-border);
  background: var(--ios-fish-identify-panel);
  border-radius: 24px;
  box-shadow: 0 20px 44px rgba(4, 12, 19, 0.28);
}

.ios-fish-identify-hero {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.ios-fish-identify-hero__eyebrow,
.ios-fish-identify-panel__label,
.ios-fish-identify-overview__eyebrow {
  color: var(--ios-fish-identify-blue-strong);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ios-fish-identify-hero__title,
.ios-fish-identify-auth__title {
  margin: 0;
  color: var(--ios-fish-identify-text-strong);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.ios-fish-identify-hero__body,
.ios-fish-identify-auth__body,
.ios-fish-identify-results__intro,
.ios-fish-identify-location-meta,
.ios-fish-identify-overview__body,
.ios-fish-identify-empty__body,
.ios-fish-identify-candidate__details {
  margin: 0;
  color: rgba(212, 212, 216, 0.88);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.ios-fish-identify-panel,
.ios-fish-identify-auth {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.ios-fish-identify-auth {
  justify-items: center;
  text-align: center;
}

.ios-fish-identify-auth__body {
  max-width: 280px;
}

.ios-fish-identify-primary-button {
  appearance: none;
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(63, 159, 212, 0.48);
  border-radius: 14px;
  background: rgba(16, 50, 69, 0.88);
  color: var(--ios-fish-identify-text-strong);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.ios-fish-identify-primary-button:hover,
.ios-fish-identify-primary-button:focus-visible,
.ios-fish-identify-stage:hover,
.ios-fish-identify-stage:focus-visible,
.ios-fish-identify-location-button:hover,
.ios-fish-identify-location-button:focus-visible {
  transform: translateY(-1px);
}

.ios-fish-identify-primary-button:hover,
.ios-fish-identify-primary-button:focus-visible {
  border-color: rgba(111, 210, 242, 0.56);
  background: rgba(16, 50, 69, 0.96);
}

.ios-fish-identify-primary-button:disabled,
.ios-fish-identify-stage:disabled,
.ios-fish-identify-location-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.ios-fish-identify-stage {
  appearance: none;
  width: 100%;
  height: 224px;
  padding: 8px;
  border: 1px solid var(--ios-fish-identify-border);
  border-radius: 22px;
  background: var(--ios-fish-identify-chrome);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.ios-fish-identify-stage:hover,
.ios-fish-identify-stage:focus-visible {
  border-color: rgba(111, 210, 242, 0.42);
}

.ios-fish-identify-stage__empty {
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  border: 1.5px dashed rgba(111, 210, 242, 0.5);
  border-radius: 18px;
  background: rgba(14, 16, 21, 0.44);
}

.ios-fish-identify-stage__icon {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(16, 50, 69, 0.72);
  color: var(--ios-fish-identify-text-strong);
}

.ios-fish-identify-stage__icon svg {
  width: 26px;
  height: 26px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ios-fish-identify-stage__title {
  color: var(--ios-fish-identify-text-strong);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.12;
}

.ios-fish-identify-stage__body {
  max-width: 280px;
  color: rgba(212, 212, 216, 0.86);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.ios-fish-identify-stage__preview {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(14, 16, 21, 0.82);
}

.ios-fish-identify-stage__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  background: rgba(14, 16, 21, 0.72);
  color: var(--ios-fish-identify-text-strong);
}

.ios-fish-identify-stage__spinner,
.ios-fish-identify-location-button__spinner {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2.5px solid rgba(63, 159, 212, 0.18);
  border-top-color: var(--ios-fish-identify-blue-strong);
  animation: ios-fish-identify-spin 0.8s linear infinite;
}

.ios-fish-identify-stage__overlay-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

@keyframes ios-fish-identify-spin {
  to {
    transform: rotate(360deg);
  }
}

.ios-fish-identify-location-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ios-fish-identify-location-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(30, 32, 40, 0.9);
  background: rgba(14, 16, 21, 0.98);
  color: rgba(212, 212, 216, 0.86);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.ios-fish-identify-location-pill[data-tone="success"] {
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.14);
  color: var(--ios-fish-identify-success);
}

.ios-fish-identify-location-pill[data-tone="error"] {
  border-color: rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
}

.ios-fish-identify-location-pill__icon {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ios-fish-identify-location-pill__icon svg {
  width: 12px;
  height: 12px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ios-fish-identify-location-button {
  appearance: none;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(63, 159, 212, 0.48);
  border-radius: 10px;
  background: rgba(16, 50, 69, 0.88);
  color: var(--ios-fish-identify-text-strong);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.ios-fish-identify-location-button[data-active="true"] {
  background: rgba(16, 50, 69, 0.24);
}

.ios-fish-identify-location-button:hover,
.ios-fish-identify-location-button:focus-visible {
  border-color: rgba(111, 210, 242, 0.56);
}

.ios-fish-identify-location-button__icon {
  width: 14px;
  height: 14px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ios-fish-identify-feedback {
  border-radius: 14px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.ios-fish-identify-feedback[data-tone="success"] {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
}

.ios-fish-identify-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ios-fish-identify-submit__icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ios-fish-identify-submit__icon svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ios-fish-identify-results__summary,
.ios-fish-identify-results__detections {
  display: grid;
  gap: 12px;
}

.ios-fish-identify-overview,
.ios-fish-identify-empty,
.ios-fish-identify-detection {
  border: 1px solid var(--ios-fish-identify-border);
  border-radius: 20px;
  background: rgba(14, 16, 21, 0.98);
  padding: 16px;
}

.ios-fish-identify-overview {
  display: grid;
  gap: 14px;
  align-items: start;
}

.ios-fish-identify-overview__copy {
  display: grid;
  gap: 8px;
}

.ios-fish-identify-overview__title,
.ios-fish-identify-empty__title {
  color: var(--ios-fish-identify-text-strong);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.ios-fish-identify-overview__subtitle,
.ios-fish-identify-candidate__subtitle,
.ios-fish-identify-detection__meta {
  color: var(--ios-fish-identify-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.ios-fish-identify-score {
  width: 64px;
  min-width: 64px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(63, 159, 212, 0.32);
  border-radius: 16px;
  background: rgba(16, 50, 69, 0.88);
  color: var(--ios-fish-identify-text-strong);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.ios-fish-identify-score--overview {
  width: 84px;
  min-width: 84px;
  height: 84px;
  border-radius: 20px;
  font-size: 28px;
}

.ios-fish-identify-detection__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ios-fish-identify-detection__title,
.ios-fish-identify-candidate__title {
  color: var(--ios-fish-identify-text-strong);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.ios-fish-identify-detection__list {
  display: grid;
  gap: 10px;
}

.ios-fish-identify-candidate {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--ios-fish-identify-border);
  border-radius: 16px;
  background: rgba(14, 16, 21, 0.82);
}

.ios-fish-identify-candidate__copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ios-fish-identify-empty {
  display: grid;
  gap: 8px;
}

@media (min-width: 401px) {
  .ios-fish-identify-overview {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 480px) {
  .ios-fish-identify-screen__scroll {
    padding-inline: 16px;
  }
}
