/* New mirror hero — append to screens via separate file for clarity */
.nm-root {
  display: flex; flex-direction: column;
  height: 100%; min-height: 0;
  overflow-y: auto;
  background: var(--mh-bg);
}

.nm-stage {
  padding: 96px 72px 56px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.nm-eyebrow-row {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 36px;
}

.nm-flow-toggle {
  display: inline-flex;
  border: 1px solid var(--mh-line);
  border-radius: var(--mh-r-pill);
  overflow: hidden;
  background: var(--mh-card);
}
.nm-flow-btn {
  background: transparent; border: 0;
  padding: 6px 14px;
  font-family: var(--mh-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--mh-text-mute);
  cursor: pointer;
  transition: all var(--mh-dur);
}
.nm-flow-btn:hover { color: var(--mh-text); }
.nm-flow-btn.is-on {
  background: var(--mh-plum-soft);
  color: var(--mh-plum-bright);
}

/* the hero input — single mono field, plum cursor */
.nm-input-frame {
  display: flex; align-items: center;
  gap: 18px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--mh-border);
  position: relative;
  transition: border-color var(--mh-dur);
}
.nm-input-frame:focus-within { border-bottom-color: var(--mh-plum); }
.nm-input-frame.error { border-bottom-color: var(--mh-danger); }
.nm-input-frame.fetching { border-bottom-color: var(--mh-plum); }
.nm-input-frame.success { border-bottom-color: var(--mh-good); }

.nm-input-prompt {
  font-size: 32px;
  color: var(--mh-text-faint);
  font-weight: 500;
  user-select: none;
}
.nm-input-frame:focus-within .nm-input-prompt {
  color: var(--mh-plum-bright);
}

.nm-input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  font-family: var(--mh-mono);
  font-variant-numeric: tabular-nums;
  font-size: 38px;
  font-weight: 400;
  color: var(--mh-text);
  letter-spacing: -0.005em;
  padding: 4px 0;
  caret-color: var(--mh-plum-bright);
}
.nm-input::placeholder {
  color: var(--mh-text-faint);
  font-weight: 400;
}

.nm-input-clear {
  background: transparent; border: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: var(--mh-text-mute);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--mh-dur);
}
.nm-input-clear:hover { background: var(--mh-plum-soft); color: var(--mh-plum); }

.nm-input-spinner {
  display: inline-flex; gap: 5px;
  align-items: center;
}
.nm-input-spinner span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mh-plum);
  animation: nmpulse 1.2s var(--mh-ease) infinite;
}
.nm-input-spinner span:nth-child(2) { animation-delay: 0.2s; }
.nm-input-spinner span:nth-child(3) { animation-delay: 0.4s; }
@keyframes nmpulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.4); }
}

/* status line below hero */
.nm-status {
  margin-top: 14px;
  height: 22px;
  display: flex; align-items: center;
}
.nm-status-error, .nm-status-fetching, .nm-status-validating, .nm-status-empty, .nm-status-hint, .nm-status-success {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px;
}
.nm-status-error { color: var(--mh-danger); }
.nm-status-fetching { color: var(--mh-text-dim); }
.nm-status-validating { color: var(--mh-warn); }
.nm-status-success { color: var(--mh-good); }
.nm-status-hint { color: var(--mh-text-faint); font-size: 11px; }
.nm-kbd {
  font-family: var(--mh-mono);
  background: var(--mh-card);
  border: 1px solid var(--mh-line);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  color: var(--mh-text-dim);
}
.nm-status-bar {
  display: inline-block;
  width: 120px; height: 1px;
  background: var(--mh-line);
  position: relative;
  overflow: hidden;
}
.nm-status-bar-fill {
  position: absolute; top: 0; left: -40%;
  height: 100%; width: 40%;
  background: var(--mh-plum);
  animation: nmbar 1.5s var(--mh-ease) infinite;
}
@keyframes nmbar {
  to { left: 100%; }
}

/* big tagline */
.nm-tagline {
  margin-top: 56px;
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--mh-text);
}
.nm-tagline-meta {
  margin-top: 12px;
  font-size: 12px;
  color: var(--mh-text-mute);
  letter-spacing: 0.02em;
}

/* recent extractions — editorial contact-sheet */
.nm-recent {
  padding: 56px 72px 72px;
  border-top: 1px solid var(--mh-line);
  background: var(--mh-surface);
}
.nm-recent-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 22px;
  max-width: 1100px;
  margin-left: auto; margin-right: auto;
}
.nm-recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--mh-line);
}
.nm-recent-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--mh-line);
  border-right: 1px solid var(--mh-line);
  cursor: pointer;
  transition: background var(--mh-dur);
}
.nm-recent-grid > .nm-recent-card:nth-child(3n) { border-right: 0; }
.nm-recent-card:hover { background: var(--mh-plum-soft); }
.nm-recent-img {
  width: 96px; height: 96px;
  border-radius: var(--mh-r-input);
  overflow: hidden;
  background: var(--mh-card);
  position: relative;
}
.nm-recent-img > .nm-recent-img-real {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.nm-recent-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nm-recent-id-row {
  display: flex; justify-content: space-between; align-items: baseline;
}
.nm-recent-id { font-size: 11px; color: var(--mh-plum-bright); }
.nm-recent-when { font-size: 10px; color: var(--mh-text-faint); }
.nm-recent-t {
  font-size: 13px;
  color: var(--mh-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nm-recent-foot {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: auto;
}
.nm-recent-jp { font-size: 12px; color: var(--mh-text-dim); }
.nm-recent-state { font-size: 9.5px; color: var(--mh-text-mute); letter-spacing: 0.04em; }
