/* Mirrors the layout/utility classes the real screens use, sourced from
   app/src/index.css + app/src/styles/extras.css, so the Screens mockups
   render with the exact same classes as the running app instead of a
   separate hand-copied vocabulary. Keep in sync with those two files.

   Intentional clip-box differences (required so chrome stays inside
   .real-frame-clip, not the docs page):
   - .ntr-sheet-scrim is position:absolute here; the app uses fixed.
   - .real-frame-clip .app-shell drops min-height:100dvh (docs viewport).
   - .real-frame-clip .ntr-fab is absolute; the app's Fab is inline fixed.
   - .real-frame-clip .ntr-actionbar is absolute so it pins to the clip
     box; viewport position:fixed would escape the phone frame. */

.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  background: var(--background);
  display: flex;
  flex-direction: column;
  position: relative;
}

.app-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--background);
  padding-top: env(safe-area-inset-top);
}

.app-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4) var(--space-2);
}

.app-header__logo {
  display: block;
  height: 20px;
  width: auto;
}

.app-header__tabbar {
  border-top: none;
  border-bottom: 1px solid var(--border);
}

.screen-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 34px;
}

.screen-title {
  font-size: 20px;
  font-weight: 700;
}

.screen-subtitle {
  font-size: 13px;
  color: var(--text-muted-strong);
}

.chip-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.empty-state {
  margin: auto;
  text-align: center;
  color: var(--text-muted-strong);
  font-size: 14px;
  padding: var(--space-6) 0;
}

.list-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.error-banner {
  background: var(--surface-2);
  border: 1px solid var(--accent-tint-border);
  color: var(--accent-text);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-size: 13px;
}

.ntr-sheet-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 40;
}

.ntr-sheet {
  width: 100%;
  max-width: 480px;
}

.ntr-sheet__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.ntr-sheet__subtitle {
  font-size: 12px;
  color: var(--text-muted-strong);
  margin: 2px 0 12px;
}

.ntr-sheet__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  width: 100%;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}
.ntr-sheet__option:first-of-type { border-top: 1px solid var(--border); }

.ntr-proposal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.ntr-proposal__field {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.ntr-proposal__diff {
  font-size: 13px;
  margin-bottom: var(--space-3);
}

.ntr-proposal__actions {
  display: flex;
  gap: var(--space-2);
}

.ntr-proposal__reason {
  font-size: 12px;
  font-style: italic;
  color: var(--text-muted-strong);
  margin-top: var(--space-2);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.field-label {
  font-size: 12px;
  color: var(--text-muted-strong);
}

.ntr-meta {
  font-size: 12px;
  color: var(--text-muted-strong);
  white-space: nowrap;
}

.ntr-snippet {
  font-size: 14px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hint-text {
  font-size: 12px;
  color: var(--text-muted-strong);
  line-height: 1.5;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

/* Clip-box stand-ins — see file header. */
.real-frame-clip .app-shell {
  min-height: 0;
  flex: 1;
  max-width: none;
}

.real-frame-clip .ntr-fab {
  position: absolute;
  right: 24px;
  bottom: calc(env(safe-area-inset-bottom) + 24px);
  z-index: 5;
}

.real-frame-clip .ntr-actionbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
}
