/* Locked frame: N4 nav and M1 momentum. Loaded after the older view rules. */
.nav { flex-wrap: nowrap; gap: 18px; padding: 16px 20px 10px; }
.nav .nav-brand {
  font: 700 20px var(--font-display);
  color: var(--pink);
  background: none;
  -webkit-text-fill-color: currentColor;
  margin-right: 0;
}
.nav-app-switcher { display: flex; align-items: center; }
.nav-words { display: flex; align-items: center; gap: 18px; }
.nav .nav-link {
  font: 500 13px var(--font-body);
  padding: 2px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
}
.nav .nav-link.active {
  color: var(--text);
  background: none;
  border-color: var(--pink);
}
.nav .nav-capture-btn { width: 46px; height: 46px; font: 700 26px var(--font-display); }
.mom-bar { min-width: 0; flex-wrap: nowrap; justify-content: space-between; padding: 14px 12px; gap: 8px; }
.mom-activity, .mom-tools { display: contents; }
.mom-bar .mom-streak { flex-shrink: 0; }
.mom-bar .mom-flame { white-space: nowrap; }
.mom-bar .mom-divider { display: none; }
.mom-bar .mom-streak-label { font: 600 13px var(--font-display); }
.mom-bar .mom-counts, .mom-bar .mom-fresh { font-size: 10px; }
.mom-bar .mom-progress { min-width: 40px; }
.mom-bar .mom-search { margin-left: 0; padding: 6px 10px; gap: 6px; }
.mom-bar .mom-search input { width: 40px; }
.mom-system { position: relative; cursor: pointer; }
.mom-system-count {
  font: 700 9px var(--font-mono);
  min-width: 14px;
  height: 14px;
  padding: 0 2px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: #201800;
}
/* Courier dot (LOG courier round 1, B): the age of the courier's last poll. */
.mom-courier {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; white-space: nowrap;
  padding: 0; border: 0; background: none; cursor: pointer;
  font: 400 10px var(--font-mono); color: var(--dim);
}
.mom-courier-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: oklch(0.78 0.15 150); box-shadow: 0 0 6px oklch(0.78 0.15 150 / .6);
}
.mom-courier.stale .mom-courier-dot { background: var(--amber); box-shadow: 0 0 6px oklch(0.8 0.15 80 / .5); }
.mom-courier.stale .mom-courier-age { color: var(--amber); }
.mom-courier.none .mom-courier-dot { background: var(--dimmer); box-shadow: none; }
.mom-courier:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 4px; }
.site-footer { flex-wrap: wrap; }
.site-footer a { white-space: nowrap; }
@media (max-width: 699px) {
  .nav { display: grid; grid-template-columns: 1fr auto; gap: 8px 0; padding: 14px 14px 8px; }
  .nav .nav-brand { margin: 0; }
  .nav-app-switcher { display: none; }
  .nav .nav-capture-btn { grid-column: 2; grid-row: 1; width: 38px; height: 38px; font-size: 22px; }
  .nav-words { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 0; padding: 0 2px 2px; }
  .mom-bar { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px; }
  .mom-activity, .mom-tools { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .mom-bar .mom-divider { display: none; }
  .mom-bar .mom-streak { gap: 4px; }
  .mom-bar .mom-counts { margin-left: auto; font-size: 10px; }
  .mom-bar .mom-progress { order: 0; flex: 1; }
  .mom-bar .mom-fresh { order: 0; }
  .mom-bar .mom-system, .mom-bar .mom-search {
    order: 0;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--chip-bg);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mom-system-label, .mom-bar .mom-kbd { display: none; }
  .mom-system-count { position: absolute; top: -3px; right: -3px; }
  .mom-bar .mom-search { position: relative; }
  .mom-bar .mom-search input {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    cursor: text;
  }
  /* The round search icon opens the same real input, including keyboard focus. */
  .mom-bar .mom-search:focus-within { flex: 1 1 120px; border-radius: var(--r-pill); padding: 0 8px; }
  .mom-bar .mom-search:focus-within input { position: static; opacity: 1; min-width: 0; }
  .mom-tools:has(.mom-search:focus-within) .mom-progress { display: none; }
}
