:root {
  --bg-page: #f2f2f7;
  --surface: #ffffff;
  --surface-soft: #f7f7fa;
  --surface-strong: #eef0f4;
  --line: #e5e5ea;
  --line-strong: #d1d1d6;
  --text: #111111;
  --muted: #6e6e73;
  --accent: #007aff;
  --accent-press: #0066d6;
  --success: #30d158;
  --radius: 14px;
  --app-screen-height: 100dvh;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-result-scroll {
  overflow-y: auto;
  overflow-x: hidden;
}

.bg-glow {
  display: none;
}

.bg-glow-a,
.bg-glow-b {
  display: none;
}

.app-shell {
  width: min(100%, 920px);
  height: var(--app-screen-height);
  min-height: var(--app-screen-height);
  margin: 0 auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.is-result-scroll .app-shell {
  height: auto;
  min-height: var(--app-screen-height);
}

body.is-result-mode .app-shell {
  width: min(100%, 980px);
  padding: 0 12px 14px;
  gap: 0;
}

body.is-result-mode {
  background: #ffffff;
}

body.is-result-mode .app-head,
body.is-result-mode .status-line {
  display: none;
}

body.is-result-mode .card {
  gap: 0;
}

.app-head {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #2c2c2e;
}

.engine-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-line {
  min-height: 20px;
  margin: 0;
  padding: 0 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.screen {
  display: none;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  animation: fadeIn 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity;
}

.screen.is-active {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#screenGender {
  justify-content: center;
  align-items: center;
  padding: 2vh 0;
  text-align: center;
}

#screenGender h1 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

#screenGender > p {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: clamp(14px, 1.9vw, 18px);
}

.gender-grid {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.choice-btn,
.btn {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 600;
  line-height: 1;
  padding: 13px 14px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.choice-btn:hover,
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.choice-btn.is-selected {
  border-color: rgba(0, 122, 255, 0.35);
  background: rgba(0, 122, 255, 0.08);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-press);
}

.btn-ghost {
  background: var(--surface-soft);
  color: #2c2c2e;
}

#screenUpload,
#screenPoints,
#screenResult {
  padding: 2px 0 0;
  gap: 8px;
}

#screenUpload h1,
#screenPoints h1 {
  margin: 0;
  font-size: clamp(22px, 3.1vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

#screenUpload > p,
#screenPoints > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, 1.8vw, 16px);
}

.upload-zone {
  position: relative;
  flex: 1;
  min-height: clamp(180px, 34vh, 340px);
  border: 2px dashed #bcc2cc;
  border-radius: 16px;
  background: var(--surface-soft);
  overflow: hidden;
  cursor: pointer;
}

.upload-zone.is-drag {
  border-color: rgba(0, 122, 255, 0.55);
  background: #eef6ff;
}

.upload-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  padding: 14px;
  transition: opacity 0.26s ease, visibility 0.26s ease;
}

.upload-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid #c4c8d0;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #7d8592;
}

.upload-placeholder strong {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 600;
}

.upload-placeholder span {
  font-size: clamp(11px, 1.6vw, 14px);
  color: #9196a0;
}

.upload-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 0.34s ease, transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.upload-zone.has-image .upload-preview {
  opacity: 1;
  transform: scale(1);
}

.upload-zone.has-image .upload-placeholder {
  opacity: 0;
  visibility: hidden;
}

.remove-photo {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #2c2c2e;
  font-size: 24px;
  line-height: 1;
}

.upload-zone.has-image .remove-photo {
  display: grid;
}

.detected-badge {
  display: none;
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: 10px;
  background: var(--success);
  color: #ffffff;
  font-size: clamp(12px, 1.6vw, 14px);
  font-weight: 600;
  padding: 8px 10px;
}

.detected-badge.is-visible {
  display: block;
}

.row-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex-shrink: 0;
}

.row-actions-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.tagger-top-panel {
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tagger-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #e7e9ee;
  overflow: hidden;
}

.progress-track-sm {
  margin-bottom: 8px;
  height: 4px;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.18s ease;
}

.tagger-point-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tagger-point-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tagger-point-copy strong {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.2;
  font-weight: 700;
}

.tagger-point-copy span {
  font-size: clamp(12px, 1.5vw, 13px);
  color: var(--muted);
}

.tagger-upload-back {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: #3a3a3c;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 10px;
  cursor: pointer;
}

.tagger-tabs {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: var(--surface);
}

.tagger-tab {
  flex: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding: 9px 8px;
  cursor: pointer;
  position: relative;
}

.tagger-tab.is-active {
  color: #1c1c1e;
  font-weight: 600;
}

.tagger-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #1c1c1e;
}

.placement-stage,
.result-hero {
  position: relative;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface-strong);
  overflow: hidden;
}

.reference-stage canvas,
#placementCanvas {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reference-stage.has-image canvas,
.placement-stage.has-image #placementCanvas {
  opacity: 1;
}

.placement-stage {
  flex: 1;
  min-height: clamp(220px, 38vh, 420px);
}

.placement-stage-tagger {
  min-height: 0;
}

.result-hero {
  min-height: clamp(180px, 28vh, 320px);
}

#placementCanvas,
#resultCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.placed-points {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.placed-point {
  position: absolute;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -3px;
  border-radius: 50%;
  background: #111111;
  border: 1px solid #ffffff;
}

.crosshair {
  position: absolute;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
  z-index: 30;
  pointer-events: auto;
  cursor: grab;
  transition: left 0.28s ease, top 0.28s ease, transform 0.1s ease;
}

.crosshair.is-dragging {
  cursor: grabbing;
  transition: none;
  transform: scale(1.02);
}

.crosshair-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-style: solid;
  border-color: #ff3b30;
  border-width: 0;
}

.crosshair-corner.tl {
  top: 0;
  left: 0;
  border-top-width: 2px;
  border-left-width: 2px;
}

.crosshair-corner.tr {
  top: 0;
  right: 0;
  border-top-width: 2px;
  border-right-width: 2px;
}

.crosshair-corner.bl {
  bottom: 0;
  left: 0;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.crosshair-corner.br {
  bottom: 0;
  right: 0;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.crosshair-line {
  position: absolute;
  background: rgba(255, 59, 48, 0.65);
}

.crosshair-line.h {
  width: 14px;
  height: 1px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.crosshair-line.v {
  width: 1px;
  height: 14px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.crosshair-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #ff3b30;
  border: 1px solid #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.tagger-bottom-buttons {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 40;
}

.tagger-nav-btn {
  appearance: none;
  border-radius: 10px;
  min-width: 88px;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 10px 16px;
  cursor: pointer;
}

.tagger-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tagger-nav-btn-outline {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: #2c2c2e;
}

.tagger-nav-btn-dark {
  background: #1c1c1e;
  color: #ffffff;
}

#screenResult {
  padding: 0 0 10px;
  gap: 10px;
}

.fiq-ref-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #f3f4f6;
}

.fiq-ref-header-inner {
  width: 96%;
  margin: 0 auto;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fiq-ref-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fiq-ref-icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 6px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  cursor: pointer;
  flex-shrink: 0;
}

.fiq-ref-icon-btn:hover {
  background: #f3f4f6;
}

.fiq-ref-icon-btn svg {
  width: 20px;
  height: 20px;
}

.fiq-ref-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.fiq-ref-brand-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.fiq-ref-brand-text {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.fiq-ref-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fiq-ref-round-btn {
  appearance: none;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
}

.fiq-ref-round-btn:hover {
  background: #e5e7eb;
}

.fiq-ref-round-btn svg {
  width: 16px;
  height: 16px;
}

.fiq-ref-subheader {
  position: fixed;
  top: 44px;
  left: 0;
  right: 0;
  z-index: 30;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #f3f4f6;
}

.fiq-ref-subheader-inner {
  width: 96%;
  margin: 0 auto;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fiq-ref-back-btn {
  appearance: none;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  color: #6b7280;
}

.fiq-ref-back-btn:hover {
  color: #111827;
}

.fiq-ref-back-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.fiq-ref-back-label {
  font-size: 11px;
  font-weight: 600;
  color: #111827;
}

.fiq-ref-subdivider {
  width: 1px;
  height: 16px;
  background: #e5e7eb;
  flex-shrink: 0;
}

.fiq-ref-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.fiq-ref-tabs::-webkit-scrollbar {
  display: none;
}

.fiq-ref-bars-spacer {
  height: 84px;
  flex-shrink: 0;
}

.fiq-topbar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 0;
  padding: 6px 0 4px;
}

.fiq-topbar-left,
.fiq-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fiq-topbar-tabs {
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 10px;
  gap: 6px;
}

.fiq-topbar-tabs::-webkit-scrollbar {
  display: none;
}

.fiq-icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #7f8794;
  font-size: 27px;
  line-height: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
}

.fiq-brand {
  color: #171a21;
  font-size: clamp(20px, 2.8vw, 38px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fiq-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid #151924;
  border-radius: 4px;
  color: transparent;
  position: relative;
}

.fiq-brand-mark::before,
.fiq-brand-mark::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #151924;
}

.fiq-brand-mark::before {
  top: 3px;
  left: 3px;
}

.fiq-brand-mark::after {
  right: 3px;
  bottom: 3px;
}

.fiq-link-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 0;
}

.fiq-link-pill {
  position: relative;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
  color: #9ca3af;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fiq-link-pill:hover {
  color: #374151;
}

.fiq-link-pill.is-active {
  color: #111827;
  background: #f3f4f6;
}

.fiq-link-btn.fiq-link-muted {
  color: #404858;
}

.fiq-link-btn.fiq-link-muted span {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  margin-left: 3px;
  font-size: 9px;
  font-weight: 700;
  color: #ffffff;
  background: #5b6270;
}

.fiq-main-tabs {
  height: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  border-bottom: 1px solid #e7e9ef;
  padding: 0 2px 0;
}

.fiq-main-tabs button {
  appearance: none;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #97a0ad;
  font-size: clamp(13px, 2vw, 31px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  padding: 0 0 12px;
}

.fiq-main-tabs button.is-active {
  color: #1d232f;
  border-bottom-color: #1d2839;
}

.fiq-mode-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #e9ebf1;
  border-radius: 26px;
  background: rgba(250, 251, 253, 0.9);
  padding: 12px;
}

.fiq-mode-card {
  border-radius: 14px;
  border: 1px solid #d9dde6;
  background: #ffffff;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
}

.fiq-mode-card.is-disabled {
  border-color: transparent;
  background: transparent;
  opacity: 0.45;
}

.fiq-mode-card img,
.fiq-mode-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #e3e5eb;
  object-fit: cover;
}

.fiq-mode-copy {
  display: grid;
  gap: 4px;
}

.fiq-mode-copy strong {
  color: #6b7383;
  font-size: clamp(11px, 1.5vw, 29px);
  line-height: 1;
  font-weight: 700;
}

#resultScoreBadge {
  color: #a8afbb;
  font-size: clamp(11px, 1.35vw, 27px);
  line-height: 1;
  font-weight: 500;
}

.result-hero {
  min-height: clamp(360px, 54vh, 780px);
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  box-shadow:
    0 22px 40px rgba(20, 27, 40, 0.12),
    inset 0 0 0 1px rgba(16, 21, 33, 0.06);
}

#resultCanvas {
  filter: saturate(1.04) contrast(1.02);
}

.hero-settings-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 30;
  appearance: none;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(41, 48, 62, 0.8);
  color: #ffffff;
  font-size: 20px;
  display: grid;
  place-items: center;
}

.hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px 18px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(6, 9, 14, 0) 0%, rgba(7, 12, 19, 0.82) 72%, rgba(9, 14, 22, 0.88) 100%);
}

.hero-watermark {
  display: inline-block;
  margin-bottom: 14px;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.18);
}

.hero-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.hero-copy {
  min-width: 0;
}

.hero-metric-name {
  font-size: clamp(20px, 3vw, 41px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #eef5fd;
}

.hero-kicker {
  font-size: clamp(18px, 2.8vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: rgba(226, 237, 248, 0.82);
}

.hero-score-box {
  text-align: right;
}

.hero-score {
  font-size: clamp(24px, 4.8vw, 66px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #7ee4ff;
}

.hero-score-unit {
  color: rgba(146, 186, 208, 0.9);
  font-size: clamp(14px, 2.1vw, 34px);
  font-weight: 600;
  margin-left: 3px;
}

.hero-grade {
  margin-top: 8px;
  font-size: clamp(14px, 2vw, 35px);
  line-height: 1.05;
  color: rgba(130, 222, 252, 0.95);
}

.fiq-highlights {
  display: grid;
  gap: 14px;
}

.fiq-highlight-card {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    rgba(114, 131, 140, 0.1) 0px 4px 24px,
    rgba(114, 131, 140, 0.08) 0px 8px 48px,
    rgba(255, 255, 255, 0.9) 0px 1px 1px inset;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.4) 100%);
  overflow: hidden;
}

.fiq-highlight-backdrop {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.fiq-highlight-layer {
  position: absolute;
  inset: 0;
}

.fiq-highlight-layer-blur {
  z-index: 1;
  backdrop-filter: blur(4px) saturate(1.15);
}

.fiq-highlight-layer-radial {
  z-index: 2;
  background:
    radial-gradient(150% 120% at 20% -30%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.2) 30%, transparent 60%),
    radial-gradient(100% 80% at -20% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
}

.fiq-highlight-layer-lines {
  z-index: 3;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.15) 20%, transparent 45%),
    linear-gradient(140deg, transparent 50%, rgba(240, 245, 250, 0.1) 70%, rgba(230, 240, 250, 0.15) 100%);
}

.fiq-highlight-layer-bottom {
  z-index: 4;
  background: radial-gradient(200% 100% at 50% 100%, rgba(245, 248, 252, 0.4) 0%, transparent 40%);
}

.fiq-highlight-head {
  position: relative;
  z-index: 20;
  margin: -16px -16px 14px;
  padding: 16px 16px 12px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: rgba(0, 0, 0, 0.04) 0px 4px 12px -4px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.fiq-highlight-title {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgb(45, 54, 61);
}

.fiq-highlight-divider {
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(90deg, rgba(114, 131, 140, 0.12) 0%, rgba(114, 131, 140, 0.04) 70%, transparent 100%);
}

.fiq-highlight-list {
  position: relative;
  z-index: 10;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(114, 131, 140, 0.08);
}

.fiq-highlight-item {
  width: 100%;
  border: 0;
  display: block;
  text-align: left;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.fiq-highlight-item:hover {
  background-color: rgba(0, 0, 0, 0.015);
}

.fiq-highlight-item:last-child {
  border-bottom: 0;
}

.fiq-highlight-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fiq-highlight-badge {
  height: 20px;
  width: 52px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background-color: rgba(114, 131, 140, 0.08);
}

.fiq-highlight-badge span {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fiq-highlight-score {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fiq-highlight-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(0, 0, 0, 0.85);
}

.fiq-highlight-name.is-locked {
  filter: blur(6px);
  user-select: none;
}

.fiq-highlight-summary {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.55);
}

.fiq-highlight-summary.is-locked {
  filter: blur(5px);
  user-select: none;
}

.fiq-highlight-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: rgba(0, 0, 0, 0.25);
}

.fiq-highlight-more {
  position: relative;
  z-index: 10;
  width: 100%;
  border: 0;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  background: rgba(74, 124, 89, 0.08);
  color: rgb(74, 124, 89);
  border-top: 1px solid rgba(114, 131, 140, 0.08);
}

.fiq-highlight-more-danger {
  background: rgba(176, 128, 144, 0.1);
  color: rgb(176, 128, 144);
}

.fiq-highlight-more-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.hero-slider-nav {
  height: 66px;
  border-radius: 18px;
  background: #eceff3;
  border: 1px solid #e0e5ec;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}

.hero-nav-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #8b95a6;
  font-size: clamp(26px, 3vw, 45px);
  line-height: 1;
  height: 100%;
}

.hero-nav-btn:disabled {
  opacity: 0.45;
}

.metrics-block {
  flex: none;
  display: block;
  border: 1px solid #e9ecf2;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(23, 30, 43, 0.05);
  overflow: visible;
}

.metrics-head {
  padding: 14px 18px 10px;
}

.metrics-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.metrics-understanding {
  color: #8c97a7;
  font-size: clamp(14px, 1.9vw, 32px);
  line-height: 1;
  font-weight: 600;
}

.metrics-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.metrics-facegpt {
  appearance: none;
  border: 0;
  background: transparent;
  color: #7b8ca2;
  font-size: clamp(12px, 1.7vw, 31px);
  font-weight: 600;
  line-height: 1;
  padding: 0;
}

.metrics-unlock-btn {
  appearance: none;
  border: 1px solid #1d2a39;
  border-radius: 999px;
  background: #1f2937;
  color: #ffffff;
  font-size: clamp(12px, 1.55vw, 29px);
  font-weight: 700;
  line-height: 1;
  padding: 10px 18px;
}

.metrics-head h2 {
  margin: 0;
  font-size: clamp(20px, 2.8vw, 45px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.metrics-head p {
  margin: 10px 0 0;
  color: #98a0ac;
  font-size: clamp(12px, 1.4vw, 24px);
  line-height: 1.25;
}

.metrics-list {
  overflow: visible;
  display: grid;
  gap: 0;
  padding: 2px 14px 18px;
}

body.is-result-scroll #screenResult {
  overflow: visible;
}

body.is-result-scroll #screenResult.is-active {
  flex: none;
  min-height: auto;
}

body.is-result-scroll .metrics-block {
  flex: none;
  min-height: auto;
}

body.is-result-scroll .metrics-list {
  overflow: visible;
  flex: none;
  max-height: none;
  min-height: auto;
}

.metric-detail-page {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgb(255, 255, 255);
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, sans-serif;
  --fiq-score-rgb: 81, 148, 110;
}

.metric-detail-page[hidden] {
  display: none !important;
}

.metric-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgb(255, 255, 255);
}

.metric-detail-header h3 {
  margin: 0;
  min-width: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
  color: rgb(26, 26, 26);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-detail-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease;
}

.metric-detail-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.metric-detail-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric-detail-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 16px 96px;
  display: block;
  -webkit-overflow-scrolling: touch;
}

.metric-detail-cards {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 16px;
}

.metric-mini-card {
  flex: 1;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
  border: 0;
  padding: 12px;
  display: block;
}

.metric-mini-card span {
  display: block;
  margin-bottom: 4px;
  color: rgba(0, 0, 0, 0.4);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  font-weight: 500;
}

.metric-mini-card strong {
  color: rgb(26, 26, 26);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.metric-mini-card-accent {
  background: rgba(var(--fiq-score-rgb), 0.1);
}

.metric-mini-card-accent strong {
  color: rgb(var(--fiq-score-rgb));
}

.metric-mini-card-accent em {
  color: rgba(0, 0, 0, 0.25);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  margin-left: 2px;
}

#metricDetailIdeal {
  color: rgb(74, 124, 89);
}

.metric-detail-cards .metric-mini-card:nth-child(2) {
  background: rgba(74, 124, 89, 0.04);
}

.metric-detail-cards .metric-mini-card:nth-child(2) span {
  color: rgba(74, 124, 89, 0.6);
}

.metric-detail-photo-card {
  position: relative;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: rgba(0, 0, 0, 0.08) 0 4px 12px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(114, 131, 140, 0.4) 0%, transparent 50%),
    radial-gradient(100% 60% at 80% 100%, rgba(90, 107, 117, 0.3) 0%, transparent 40%),
    radial-gradient(80% 50% at 20% 80%, rgba(72, 87, 97, 0.25) 0%, transparent 35%),
    linear-gradient(165deg, rgb(74, 86, 96) 0%, rgb(61, 71, 79) 25%, rgb(47, 56, 63) 50%, rgb(37, 45, 51) 75%, rgb(28, 35, 40) 100%);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.metric-detail-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: rgba(0, 0, 0, 0.3) 0 2px 20px inset, rgba(255, 255, 255, 0.03) 0 -2px 15px inset;
}

#metricDetailCanvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.metric-range-card {
  position: relative;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  border: 0;
  padding: 12px;
}

.metric-range-badge {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  min-width: 0;
  text-align: center;
  background: rgb(var(--fiq-score-rgb));
  color: rgb(255, 255, 255);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding: 6px 10px;
  box-shadow: rgba(0, 0, 0, 0.15) 0 2px 8px;
}

.metric-range-badge::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgb(var(--fiq-score-rgb));
}

.metric-range-line-wrap {
  margin-top: 28px;
  position: relative;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.1) 0 1px 2px inset;
}

.metric-range-line {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    rgba(140, 45, 55, 0.9) 0%,
    rgba(140, 45, 55, 0.9) 12%,
    rgba(150, 51, 58, 0.9) 16%,
    rgba(169, 68, 70, 0.9) 22%,
    rgba(190, 118, 84, 0.9) 28%,
    rgba(194, 142, 77, 0.9) 30%,
    rgba(149, 162, 92, 0.9) 34%,
    rgba(98, 154, 108, 0.9) 36%,
    rgba(42, 130, 125, 0.9) 42%,
    rgba(35, 120, 135, 0.9) 50%,
    rgba(42, 130, 125, 0.9) 58%,
    rgba(98, 154, 108, 0.9) 64%,
    rgba(149, 162, 92, 0.9) 66%,
    rgba(194, 142, 77, 0.9) 70%,
    rgba(190, 118, 84, 0.9) 72%,
    rgba(169, 68, 70, 0.9) 78%,
    rgba(150, 51, 58, 0.9) 84%,
    rgba(140, 45, 55, 0.9) 88%,
    rgba(140, 45, 55, 0.9) 100%
  );
}

.metric-range-needle {
  position: absolute;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  width: 2px;
  height: auto;
  border-radius: 0;
  background: rgb(255, 255, 255);
  box-shadow: rgba(0, 0, 0, 0.3) 0 0 4px;
}

.metric-range-labels {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(0, 0, 0, 0.3);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.metric-range-labels span:nth-child(2) {
  color: rgba(74, 124, 89, 0.5);
}

.metric-info-card {
  margin-bottom: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  padding: 16px;
  display: block;
}

.metric-warning-card {
  background: linear-gradient(135deg, rgba(176, 122, 90, 0.04) 0%, rgba(176, 122, 90, 0.02) 100%);
  border: 1px solid rgba(176, 122, 90, 0.12);
}

.metric-info-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: rgba(0, 0, 0, 0.4);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.metric-warning-card .metric-info-title {
  color: rgb(176, 122, 90);
}

.metric-info-title b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  border-radius: 999px;
  width: auto;
  height: auto;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
}

.metric-warning-card .metric-info-title b {
  background: rgba(176, 122, 90, 0.12);
  color: rgb(176, 122, 90);
}

.metric-warning-item {
  border: 1px solid rgba(176, 122, 90, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}

.metric-warning-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
  margin-bottom: 4px;
  color: rgba(0, 0, 0, 0.8);
  font-weight: 500;
}

.metric-warning-item p {
  margin: 0;
  color: rgba(0, 0, 0, 0.5);
  font-size: 12px;
  line-height: 1.45;
}

.metric-warning-card .metric-warning-item strong {
  filter: blur(5px);
  user-select: none;
}

.metric-warning-card .metric-warning-item p {
  filter: blur(4px);
  user-select: none;
}

.metric-lock-btn {
  appearance: none;
  border: 1px solid rgba(114, 131, 140, 0.15);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  color: rgb(74, 86, 96);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  padding: 4px 8px;
  box-shadow: rgba(114, 131, 140, 0.08) 0 1px 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.metric-info-card p {
  margin: 0;
  color: rgba(0, 0, 0, 0.7);
  font-size: 14px;
  line-height: 1.5;
}

.metric-curve-card {
  padding: 12px;
}

.metric-curve-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: rgba(0, 0, 0, 0.4);
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
}

.metric-curve-head b {
  color: rgb(26, 26, 26);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.metric-curve-head small {
  color: rgba(0, 0, 0, 0.6);
  font-size: 9px;
  font-weight: 500;
  margin-right: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  text-align: right;
  margin-bottom: 4px;
}

#metricCurveCanvas {
  width: 100%;
  height: 128px;
  display: block;
}

.metric-curve-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.45);
  font-size: 9px;
}

.metric-curve-legend span::before {
  content: "";
  display: inline-block;
  margin-right: 6px;
}

.metric-curve-legend span:nth-child(1)::before {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: rgba(74, 124, 89, 0.15);
  border: 1px solid rgba(74, 124, 89, 0.35);
}

.metric-curve-legend span:nth-child(2)::before {
  width: 14px;
  height: 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.4);
  margin-top: -1px;
}

.metric-curve-legend span:nth-child(3)::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgb(255, 255, 255);
  border: 2px solid rgb(var(--fiq-score-rgb));
}

.metric-detail-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 130;
  height: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: rgba(0, 0, 0, 0.08) 0 -4px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  flex-shrink: 0;
}

.metric-detail-nav {
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: rgba(114, 131, 140, 0.1);
  color: rgb(114, 131, 140);
  font-size: 14px;
  font-weight: 500;
  height: 44px;
  padding: 0 16px;
  min-width: 112px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

.metric-detail-nav svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric-detail-nav:disabled {
  opacity: 0.3;
}

#metricDetailIndex {
  text-align: center;
  color: rgb(114, 131, 140);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  min-width: 60px;
  font-variant-numeric: tabular-nums;
}

.soon-page {
  position: fixed;
  inset: 0;
  z-index: 135;
  background: rgb(255, 255, 255);
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, sans-serif;
}

.soon-page[hidden] {
  display: none !important;
}

.soon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgb(255, 255, 255);
}

.soon-title {
  margin: 0;
  min-width: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
  color: rgb(26, 26, 26);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.soon-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease;
}

.soon-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.soon-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.soon-body {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.soon-message {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
  color: rgb(26, 26, 26);
}

.metric-row {
  appearance: none;
  border: 0;
  border-top: 1px solid #edf0f4;
  border-radius: 0;
  background: transparent;
  padding: 16px 4px;
  text-align: left;
  cursor: pointer;
}

.metric-row.is-active {
  background: rgba(93, 207, 204, 0.06);
  border-top-color: rgba(93, 207, 204, 0.25);
}

.metric-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.metric-name {
  font-size: clamp(14px, 1.8vw, 36px);
  font-weight: 600;
  color: #202533;
  letter-spacing: -0.02em;
}

.metric-score {
  font-size: clamp(18px, 2.6vw, 54px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.metric-score::after {
  content: "›";
  color: #c5cad5;
  margin-left: 6px;
  font-weight: 500;
}

.facegpt-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 12px;
}

.facegpt-modal[hidden] {
  display: none !important;
}

.facegpt-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 24, 0.52);
  backdrop-filter: blur(2px);
}

.facegpt-panel {
  position: relative;
  width: min(760px, calc(100vw - 24px));
  height: min(80vh, 760px);
  border-radius: 18px;
  border: 1px solid #e2e7ef;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(13, 23, 37, 0.32);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.facegpt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #e7ebf2;
}

.facegpt-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #141b26;
}

.facegpt-meta {
  margin: 4px 0 0;
  color: #7b8899;
  font-size: 12px;
  line-height: 1.3;
}

.facegpt-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #657389;
  font-size: 30px;
  line-height: 1;
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
}

.facegpt-messages {
  padding: 14px 14px 10px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
}

.facegpt-msg {
  max-width: 88%;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.facegpt-msg.user {
  margin-left: auto;
  border-bottom-right-radius: 6px;
  background: #1f2937;
  color: #f8fbff;
}

.facegpt-msg.assistant {
  margin-right: auto;
  border-bottom-left-radius: 6px;
  background: #ecf2fb;
  color: #142131;
}

.facegpt-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.facegpt-typing span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #6e8199;
  animation: facegpt-blink 1.1s infinite;
}

.facegpt-typing span:nth-child(2) {
  animation-delay: 0.18s;
}

.facegpt-typing span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes facegpt-blink {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  40% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

.facegpt-input-wrap {
  border-top: 1px solid #e7ebf2;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  background: #ffffff;
}

.facegpt-input {
  width: 100%;
  resize: none;
  border: 1px solid #d6deea;
  border-radius: 12px;
  background: #fbfdff;
  color: #152032;
  font: 500 14px/1.4 Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 10px 12px;
  min-height: 44px;
}

.facegpt-input:focus {
  outline: none;
  border-color: #8eb8ff;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.18);
}

.facegpt-send {
  appearance: none;
  border: 1px solid #1f3c6b;
  border-radius: 12px;
  background: #1f3c6b;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 0 16px;
  min-width: 82px;
}

.facegpt-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.metric-subline {
  margin-top: 8px;
}

.metric-value,
.metric-ideal {
  font-size: clamp(11px, 1.2vw, 22px);
  color: #96a0ae;
  letter-spacing: -0.01em;
}

.bar {
  margin-top: 12px;
  height: 14px;
  border-radius: 999px;
  background: #e9edf3;
  overflow: hidden;
}

.bar-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #cc7280 0%, #c78b52 28%, #62bcae 50%, #c78b52 72%, #cc7280 100%);
  transition: width 0.2s ease;
}

@media (max-width: 780px) {
  .app-shell {
    width: 100%;
    padding: 8px;
  }

  .brand {
    font-size: 13px;
  }

  .engine-badge {
    font-size: 10px;
  }

  #screenGender {
    justify-content: flex-start;
    padding-top: 12vh;
  }

  body.is-result-mode .app-shell {
    padding: 0 8px 12px;
  }

  .fiq-topbar {
    min-height: 52px;
    gap: 8px;
  }

  .fiq-topbar-right {
    gap: 6px;
  }

  .fiq-main-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .fiq-main-tabs button {
    white-space: nowrap;
    margin-right: 18px;
  }

  .fiq-mode-strip {
    gap: 8px;
    padding: 8px;
  }

  .fiq-mode-card {
    min-width: 0;
    flex: 1;
  }

  .metrics-topline {
    flex-wrap: wrap;
  }

  .metrics-cta {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .row-actions {
    grid-template-columns: 1fr 1fr;
  }

  .tagger-bottom-buttons {
    width: calc(100% - 18px);
    gap: 8px;
  }

  .tagger-nav-btn {
    flex: 1;
    min-width: 0;
  }

  .fiq-topbar-right .fiq-link-muted {
    display: none;
  }

  .fiq-topbar-right .fiq-link-btn {
    font-size: 13px;
  }

  .fiq-mode-card img,
  .fiq-mode-placeholder {
    width: 38px;
    height: 38px;
  }

  .hero-overlay {
    padding: 10px 12px 12px;
  }

  .hero-slider-nav {
    height: 56px;
  }

  .metrics-unlock-btn {
    padding: 8px 12px;
  }

  .metric-detail-footer {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .facegpt-modal {
    padding: 6px;
  }

  .facegpt-panel {
    width: calc(100vw - 12px);
    height: min(88vh, 820px);
    border-radius: 14px;
  }

  .facegpt-msg {
    max-width: 94%;
    font-size: 13px;
  }

  .facegpt-input-wrap {
    gap: 8px;
  }

  .facegpt-send {
    min-width: 72px;
  }
}

/* 2026 Visual Refresh */
:root {
  --bg-page: #e7edf6;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-soft: rgba(250, 252, 255, 0.8);
  --surface-strong: #dfe7f2;
  --line: rgba(156, 174, 198, 0.35);
  --line-strong: rgba(126, 151, 183, 0.45);
  --text: #11192a;
  --muted: #66748a;
  --accent: #255ff5;
  --accent-press: #1f4ed0;
  --success: #1fb469;
  --radius: 18px;
}

body {
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(1200px 500px at -12% -14%, rgba(56, 189, 248, 0.2) 0%, rgba(56, 189, 248, 0) 68%),
    radial-gradient(900px 420px at 112% 8%, rgba(37, 99, 235, 0.16) 0%, rgba(37, 99, 235, 0) 72%),
    linear-gradient(180deg, #f6f9ff 0%, #e9eff8 38%, #e4ebf7 100%);
}

.bg-glow {
  display: block;
  position: fixed;
  width: 42vw;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  filter: blur(36px);
  opacity: 0.5;
}

.bg-glow-a {
  top: -18vh;
  left: -12vw;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.5) 0%, rgba(56, 189, 248, 0) 70%);
  animation: glowDriftA 14s ease-in-out infinite alternate;
}

.bg-glow-b {
  bottom: -24vh;
  right: -10vw;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.45) 0%, rgba(37, 99, 235, 0) 72%);
  animation: glowDriftB 16s ease-in-out infinite alternate;
}

@keyframes glowDriftA {
  from {
    transform: translate3d(0, 0, 0) scale(0.96);
  }

  to {
    transform: translate3d(4vw, 2vh, 0) scale(1.06);
  }
}

@keyframes glowDriftB {
  from {
    transform: translate3d(0, 0, 0) scale(0.98);
  }

  to {
    transform: translate3d(-3vw, -2vh, 0) scale(1.08);
  }
}

.app-shell {
  width: min(100%, 1140px);
  padding: 14px;
  gap: 10px;
}

body.is-result-mode .app-shell {
  width: min(100%, 1120px);
  padding: 8px 14px 16px;
}

.app-head {
  height: 40px;
}

.brand {
  font-family: Sora, Manrope, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1a2437;
}

.engine-badge {
  border: 1px solid rgba(126, 151, 183, 0.45);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 4px 20px rgba(29, 58, 98, 0.08);
}

.card {
  border-radius: 24px;
  border: 1px solid rgba(149, 171, 200, 0.38);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(250, 253, 255, 0.54));
  backdrop-filter: blur(14px);
  box-shadow:
    0 14px 40px rgba(19, 36, 67, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  padding: 10px;
}

.screen {
  animation: screenEnter 0.38s cubic-bezier(0.2, 0.72, 0.2, 1);
}

@keyframes screenEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.996);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#screenGender h1,
#screenUpload h1,
#screenPoints h1 {
  font-family: Sora, Manrope, sans-serif;
}

.choice-btn,
.btn {
  border: 1px solid rgba(133, 157, 188, 0.42);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.72));
  box-shadow: 0 6px 20px rgba(22, 44, 78, 0.08);
  transition:
    transform 0.22s cubic-bezier(0.2, 0.72, 0.2, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.2s ease;
}

.choice-btn:hover,
.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(20, 46, 86, 0.12);
}

.choice-btn.is-selected {
  border-color: rgba(37, 95, 245, 0.52);
  background: linear-gradient(180deg, rgba(229, 238, 255, 0.96), rgba(214, 229, 255, 0.76));
}

.btn-primary {
  border-color: rgba(18, 66, 190, 0.84);
  background: linear-gradient(135deg, #2f69f8 0%, #2348d8 100%);
  box-shadow: 0 10px 24px rgba(33, 86, 212, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #255ef0 0%, #2145c6 100%);
}

.btn-ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 248, 255, 0.74));
}

.upload-zone {
  border: 1.5px dashed rgba(120, 145, 177, 0.56);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.82), rgba(238, 245, 255, 0.74)),
    repeating-linear-gradient(
      45deg,
      rgba(103, 134, 174, 0.06),
      rgba(103, 134, 174, 0.06) 10px,
      rgba(103, 134, 174, 0) 10px,
      rgba(103, 134, 174, 0) 22px
    );
  transition:
    transform 0.24s cubic-bezier(0.2, 0.72, 0.2, 1),
    border-color 0.24s ease,
    box-shadow 0.26s ease,
    background-color 0.24s ease;
}

.upload-zone.is-drag {
  border-color: rgba(37, 95, 245, 0.64);
  box-shadow: 0 14px 30px rgba(37, 95, 245, 0.2);
  transform: translateY(-2px);
}

.upload-icon {
  border: 1px solid rgba(126, 153, 189, 0.65);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 247, 255, 0.78));
  box-shadow: 0 6px 18px rgba(48, 78, 120, 0.12);
}

.upload-preview {
  transition: transform 0.45s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.upload-zone.has-image .upload-preview {
  transform: scale(1.016);
}

.detected-badge {
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 26px rgba(24, 126, 76, 0.35);
}

.tagger-top-panel,
.tagger-tabs {
  border: 1px solid rgba(135, 160, 193, 0.38);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 251, 255, 0.72));
  box-shadow: 0 8px 24px rgba(21, 48, 92, 0.08);
}

.tagger-tab {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tagger-tab.is-active {
  background: rgba(37, 95, 245, 0.07);
}

.placement-stage,
.result-hero {
  border: 1px solid rgba(133, 157, 188, 0.38);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(235, 243, 255, 0.92), rgba(222, 233, 248, 0.74));
  box-shadow:
    0 18px 42px rgba(20, 41, 78, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.result-hero {
  border-radius: 30px;
  overflow: hidden;
}

.result-hero::before {
  content: "";
  position: absolute;
  inset: -20% -12%;
  background:
    radial-gradient(circle at 24% 18%, rgba(77, 224, 255, 0.24), rgba(77, 224, 255, 0) 38%),
    radial-gradient(circle at 80% 85%, rgba(49, 118, 255, 0.26), rgba(49, 118, 255, 0) 44%);
  pointer-events: none;
  z-index: 1;
  animation: heroGlowMove 11s ease-in-out infinite alternate;
}

@keyframes heroGlowMove {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(2.5%, -1.5%, 0) scale(1.03);
  }
}

#resultCanvas {
  position: relative;
  z-index: 0;
}

.hero-overlay {
  z-index: 2;
}

.hero-settings-btn {
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: linear-gradient(180deg, rgba(42, 51, 66, 0.78), rgba(31, 40, 56, 0.64));
  box-shadow: 0 10px 24px rgba(16, 23, 35, 0.24);
}

.hero-slider-nav {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.84), rgba(233, 240, 250, 0.82));
  box-shadow: 0 10px 24px rgba(21, 45, 84, 0.1);
}

.hero-nav-btn {
  border-radius: 12px;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.hero-nav-btn:not(:disabled):hover {
  background: rgba(39, 76, 137, 0.08);
  color: #4f647f;
  transform: translateY(-1px);
}

.metrics-block {
  border-radius: 26px;
  border: 1px solid rgba(145, 170, 203, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(246, 251, 255, 0.82));
  box-shadow: 0 16px 34px rgba(16, 33, 63, 0.08);
}

.metrics-head {
  padding: 16px 18px 12px;
}

.metrics-understanding {
  color: #73859d;
}

.metrics-cta {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.metrics-facegpt {
  color: #5f7592;
  transition: color 0.2s ease, transform 0.2s ease;
}

.metrics-facegpt:hover {
  color: #2b4f88;
  transform: translateY(-1px);
}

.metrics-download-btn {
  appearance: none;
  border: 1px solid rgba(37, 95, 245, 0.46);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(57, 113, 255, 0.14), rgba(57, 113, 255, 0.08));
  color: #2756a8;
  font-size: clamp(12px, 1.55vw, 28px);
  font-weight: 700;
  line-height: 1;
  padding: 10px 14px;
  box-shadow: 0 10px 22px rgba(39, 94, 202, 0.14);
  transition:
    transform 0.22s cubic-bezier(0.2, 0.72, 0.2, 1),
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease;
}

.metrics-download-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(35, 83, 196, 0.58);
  box-shadow: 0 14px 24px rgba(35, 83, 196, 0.2);
}

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

.metrics-unlock-btn {
  border: 1px solid rgba(29, 42, 57, 0.25);
  background: linear-gradient(135deg, #2c3b50 0%, #1f2c3e 100%);
  box-shadow: 0 12px 24px rgba(25, 40, 62, 0.2);
}

.metrics-list {
  padding: 2px 14px 18px;
}

.metric-row {
  border: 1px solid transparent;
  border-radius: 16px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 20px rgba(20, 40, 72, 0.06);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.72, 0.2, 1),
    background-color 0.22s ease;
  opacity: 0;
  transform: translateY(8px) scale(0.996);
  animation: metricRowEnter 0.36s cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
  animation-delay: calc(var(--row-index, 0) * 18ms);
}

.metric-row:first-child {
  margin-top: 0;
}

.metric-row:hover {
  border-color: rgba(111, 144, 187, 0.36);
  box-shadow: 0 14px 28px rgba(24, 46, 82, 0.12);
  transform: translateY(-2px);
}

.metric-row.is-active {
  border-color: rgba(55, 131, 212, 0.56);
  background: linear-gradient(180deg, rgba(230, 246, 255, 0.72), rgba(239, 252, 255, 0.6));
  box-shadow: 0 14px 28px rgba(26, 100, 180, 0.15);
}

.metric-score::after {
  color: #91a0b4;
}

@keyframes metricRowEnter {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bar {
  height: 11px;
  background: rgba(214, 224, 238, 0.9);
}

.bar-fill {
  transition: width 0.45s cubic-bezier(0.23, 0.8, 0.28, 1);
}

.metric-detail-page {
  background:
    radial-gradient(850px 320px at 50% -12%, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0) 70%),
    #f7f9fd;
}

.metric-detail-header,
.metric-detail-footer {
  backdrop-filter: blur(16px);
}

.metric-detail-photo-card,
.metric-range-card,
.metric-info-card {
  border-color: rgba(143, 165, 194, 0.28);
  box-shadow: 0 12px 28px rgba(18, 36, 68, 0.08);
}

.facegpt-panel {
  border-radius: 20px;
  border: 1px solid rgba(145, 170, 203, 0.42);
  box-shadow: 0 30px 70px rgba(14, 31, 57, 0.3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 251, 255, 0.92));
}

.facegpt-messages {
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0) 50%),
    linear-gradient(180deg, #fbfdff 0%, #f3f7fc 100%);
}

.facegpt-msg.user {
  background: linear-gradient(135deg, #2f4f7f 0%, #223b63 100%);
}

.facegpt-send {
  background: linear-gradient(135deg, #2f69f8 0%, #264fcb 100%);
  border-color: rgba(18, 66, 190, 0.84);
  box-shadow: 0 10px 22px rgba(39, 88, 198, 0.28);
}

.result-hero,
.placement-stage,
.metrics-block,
.metric-detail-photo-card,
.metric-curve-card,
.metric-row {
  contain: layout paint;
}

.metrics-block,
.metric-info-card,
.metric-row {
  content-visibility: auto;
  contain-intrinsic-size: 220px;
}

.crosshair {
  will-change: transform, left, top;
}

@media (max-width: 920px) {
  .app-shell {
    padding: 10px;
  }

  .card {
    border-radius: 18px;
    padding: 8px;
  }

  .result-hero {
    min-height: clamp(320px, 52vh, 640px);
  }

  .hero-slider-nav {
    height: 58px;
  }

  .metric-row {
    border-radius: 14px;
  }

  .metrics-download-btn {
    padding: 9px 12px;
  }

  .metrics-cta {
    gap: 8px;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-glow,
  .result-hero::before {
    animation: none !important;
  }

  .screen,
  .metric-row,
  .choice-btn,
  .btn,
  .hero-nav-btn,
  .upload-zone {
    animation: none !important;
    transition: none !important;
  }
}

/* 2026-03 layout/overlay fixes */
body.is-overlay-open {
  overflow: hidden !important;
}

body.is-overlay-open #screenResult {
  pointer-events: none;
}

.screen {
  transform: none !important;
}

.result-hero {
  min-height: clamp(320px, 50vh, 680px);
}

.hero-overlay {
  padding: 10px 14px 12px;
  background: linear-gradient(180deg, rgba(6, 9, 14, 0) 0%, rgba(7, 12, 19, 0.52) 66%, rgba(9, 14, 22, 0.74) 100%);
}

.metric-detail-page {
  inset: 0;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.metric-detail-content {
  padding: 12px 14px calc(84px + env(safe-area-inset-bottom, 0px));
  overscroll-behavior: contain;
}

.metric-detail-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.facegpt-modal {
  inset: 0;
  width: 100vw;
  height: 100dvh;
  align-items: center;
}

.facegpt-panel {
  height: min(84dvh, 760px);
  max-height: calc(100dvh - 24px);
}

.facegpt-messages {
  overscroll-behavior: contain;
}

@media (max-width: 560px) {
  .metric-detail-content {
    padding: 10px 10px calc(86px + env(safe-area-inset-bottom, 0px));
  }

  .facegpt-panel {
    height: min(90dvh, 900px);
    max-height: calc(100dvh - 10px);
  }
}

/* metric-detail hard fix: sticky bottom nav + no bleed-through */
.metric-detail-page {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1200 !important;
  width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f7f9fd !important;
}

.metric-detail-page:not([hidden]) {
  display: flex !important;
}

.metric-detail-header {
  flex: 0 0 auto;
  background: #ffffff !important;
}

.metric-detail-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #f7f9fd !important;
  padding-bottom: calc(98px + env(safe-area-inset-bottom, 0px)) !important;
}

.metric-detail-footer {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1210;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  background: #ffffff !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -6px 20px rgba(18, 31, 54, 0.12);
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.metric-detail-footer,
.metric-detail-nav,
#metricDetailIndex {
  visibility: visible !important;
  opacity: 1 !important;
}

.metric-detail-photo-card,
.metric-range-card,
.metric-info-card,
.metric-warning-item {
  background-color: #ffffff !important;
}

body [hidden] {
  display: none !important;
}
